Document Print Template

Need help, when I add the <img src="file:/C:/logo1.png" alt="Site Logo" width="500" height="500"> the system fails to print or preview.

[LAYOUT]
-- General layout
<img src="file:/C:/logo1.png" alt="Site Logo" width="100" height="100">

<Section FontFamily="Calibri" Margin="0" LineHeight="1">
<Paragraph FontSize="30" TextAlignment="Center" Padding="0,0,0,10">
<Run>INVOICE</Run>
</Paragraph>
<Paragraph TextAlignment="Center" BorderThickness="0,0.5,0,0" BorderBrush="Black" Padding="10">
TPIN#: <LineBreak/>
</Paragraph>
<Paragraph>Address: Test</Paragraph>
<Paragraph>P.O.BOX </Paragraph>
<Paragraph>Test country </Paragraph>
<Paragraph>Cell: 11111</Paragraph>
<Paragraph>Cell: 22222</Paragraph>
<Paragraph>Email: test mail <LineBreak/></Paragraph>
<Paragraph>
Date: {TICKET DATE}<LineBreak/>
Time: {TIME}<LineBreak/>
</Paragraph>
{ENTITIES}
<Table Padding="0,0,0,10">
<Table.Columns>
      <TableColumn Width="*"/>
      <TableColumn Width="3*"/>
</Table.Columns>
<TableRowGroup><TableRow>
	<TableCell><Paragraph>Invoice No:</Paragraph></TableCell>
	<TableCell><Paragraph>{TICKET NO}</Paragraph></TableCell>
</TableRow></TableRowGroup>
</Table>

<Table Padding="0,10" BorderThickness="0,1,0,1" BorderBrush="Black">
<Table.Columns>
      <TableColumn Width="2*"/>
      <TableColumn Width="15*"/>
      <TableColumn Width="3*"/>
</Table.Columns>
{ORDERS}
</Table>

<Table Padding="0,10">
<Table.Columns>
      <TableColumn Width="6*"/>
      <TableColumn Width="2*"/>
</Table.Columns>
{DISCOUNTS}
[<TableRowGroup><TableRow>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">Total Gift:</Paragraph></TableCell>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">{ORDER STATE TOTAL:Gift}</Paragraph></TableCell>
</TableRow></TableRowGroup>]
{SERVICES}
<TableRowGroup><TableRow>
	<TableCell><Paragraph FontSize="20" TextAlignment="Right"><Bold>Total:</Bold></Paragraph></TableCell>
	<TableCell><Paragraph FontSize="20" TextAlignment="Right"><Bold>{TICKET TOTAL}</Bold></Paragraph></TableCell>
</TableRow></TableRowGroup>
</Table>

<Table Padding="0,10">
<Table.Columns>
      <TableColumn Width="6*"/>
      <TableColumn Width="2*"/>
</Table.Columns>
{PAYMENTS}
</Table>

<Paragraph TextAlignment="Center" BorderThickness="0,0.5,0,0" BorderBrush="Black" Padding="10">
Slogan here<LineBreak/>
</Paragraph>
</Section>

[DISCOUNTS]
<TableRowGroup><TableRow>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">{CALCULATION NAME} %{CALCULATION AMOUNT}</Paragraph></TableCell>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">{CALCULATION TOTAL}</Paragraph></TableCell>
</TableRow></TableRowGroup>

[SERVICES]
<TableRowGroup><TableRow>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">{CALCULATION NAME}</Paragraph></TableCell>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">{CALCULATION TOTAL}</Paragraph></TableCell>
</TableRow></TableRowGroup>

[PAYMENTS]
<TableRowGroup><TableRow>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">{PAYMENT NAME}</Paragraph></TableCell>
	<TableCell><Paragraph FontSize="16" TextAlignment="Right">{PAYMENT AMOUNT}</Paragraph></TableCell>
</TableRow></TableRowGroup>

[ORDERS]
-- Default format for orders
<TableRowGroup>
<TableRow>
	<TableCell><Paragraph>- {QUANTITY}</Paragraph></TableCell>
	<TableCell><Paragraph TextAlignment="Left">{NAME}</Paragraph></TableCell>
    <TableCell><Paragraph TextAlignment="Right">{TOTAL PRICE}</Paragraph></TableCell>
</TableRow>
</TableRowGroup>
{ORDER TAGS}

[ORDERS:Gift]
-- Format for gifted orders
<TableRowGroup>
<TableRow>
	<TableCell><Paragraph>- {QUANTITY}</Paragraph></TableCell>
	<TableCell><Paragraph TextAlignment="Left">{NAME}</Paragraph></TableCell>
    <TableCell><Paragraph TextAlignment="Right"><Bold>GIFT!</Bold></Paragraph></TableCell>
</TableRow>
</TableRowGroup>
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
<TableRowGroup>
<TableRow>
    <TableCell><Paragraph TextAlignment="Right">* </Paragraph></TableCell>
    <TableCell><Paragraph TextAlignment="Left">{ORDER TAG NAME}</Paragraph></TableCell>
    <TableCell><Paragraph TextAlignment="Right">{ORDER TAG PRICE}</Paragraph></TableCell>
</TableRow>
</TableRowGroup>

[ENTITIES:Table]
-- Table entity format
<Table>
<Table.Columns>
      <TableColumn Width="*"/>
      <TableColumn Width="3*"/>
</Table.Columns>
<TableRowGroup><TableRow>
	<TableCell><Paragraph>Table:</Paragraph></TableCell>
	<TableCell><Paragraph>{ENTITY NAME}</Paragraph></TableCell>
</TableRow></TableRowGroup>
</Table>

[ENTITIES:Customer]
-- Customer entity format
<Table>
<Table.Columns>
      <TableColumn Width="*"/>
      <TableColumn Width="3*"/>
</Table.Columns>
<TableRowGroup>
<TableRow>
	<TableCell><Paragraph>Customer:</Paragraph></TableCell>
	<TableCell><Paragraph>{ENTITY NAME} {ENTITY DATA:Phone}</Paragraph></TableCell>
</TableRow>
<TableRow>
	<TableCell><Paragraph>Address:</Paragraph></TableCell>
	<TableCell><Paragraph><Run xml:space="preserve">{ENTITY DATA:Address}</Run></Paragraph></TableCell>
</TableRow>
</TableRowGroup>
</Table>

I get this error:
logo

The correct syntax for Document Printer is as follows:

<Image Source="C:\logo1.png" Width="100" Height="100"/>
2 Likes

thanks for the awesome information.