Export To Image From External Txt File フォローする

0
Avatar
Legacy Poster

Hello,

 

I am currently printing from SAP by sending a txt file to a folder.

i would like to export an image instead of printing a label.

How can i do it from the txt file?

if not doable how can i configure the label to automatically export an image?

 

Thanks,

Nadav

1 コメント

0
Avatar
Ian Cummings
モデレータ
コメントアクション Permalink

You can use BTXML script to have a BarTender Print Engine export a print job to an image.  See the below example:

 

<?xml version="1.0" encoding="utf-8"?> 
<XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123">
<Command Name="Job1">
<ExportPrintPreviewToImage ReturnImageInResponse="true"> 
<Format>c:\format1.btw</Format>
<Folder>c:\Images</Folder>
<FileNameTemplate>Preview_Label%PageNumber%.jpg</FileNameTemplate>
<ImageFormatType>JPG</ImageFormatType>
<Colors>btColors24Bit</Colors>
<DPI>300</DPI>
<Overwrite>true</Overwrite>
<IncludeMargins>true</IncludeMargins>
<IncludeBorder>true</IncludeBorder>
<BackgroundColor>16777215</BackgroundColor>
</ExportPrintPreviewToImage> 
</Command> 
</XMLScript> 


If SAP is only exporting flat CSV data or generic XML, then you'll need to put together an XSLT to run a transform action to transform the input into the BTXML with that transaction data embedded.

サインインしてコメントを残してください。