Zum Hauptinhalt gehen

Suche

Suche

Export To Image From External Txt File

Kommentare

1 Kommentar

  • Avatar
    Ian Cummings
    Moderator

    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.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.