Serialization Error When Using Exportprintpreviewtoimage In Script
I have a problem with using serialization and ExportPrintPreviewToImage in a BTXML script file.
The issue is that the Preview images do not match the printed images because it seems that the serialized field keeps counting; i.e. the preview image is not an exact copy of the printout - rather it seems to be a subsequent print job (so the serialized number keeps incrementing).
The problem can be replicated with the simple script and file - attached. The label has a simple serialized text field, and the script is used to print the label and also save a preview image. The script is appended, because when I try to upload it, I get an "Error You aren't permitted to upload this kind of file" from this webpage (?!).
Run the script, and I get 5 labels with serial numbers 003-007 - which is fine. But, the images from PrintPreview have serial numbers 008-012. (Note: replace '[DIRECTORY]' in the script with whatever you're using).
Help! How do I get it so that the preview image matches the actual label contents?
Thanks
Jeff
------------------ Script Contents --------------------------
-
Shotaro Ito
★ BarTender Hero ★
This is difficult situation.
With script above, what you have done was
1. Open SerializeTest.btw (valSerialNumber = ?)
2. Specify Serialized copy to 5
3. Specify valSerialNumber to 003
4. Print 5 labels. valSerialNumber is from 004 to 007.
at this step, valSerialNumber is 007.
5. Preview 5 labels. on the image, serial number is from 008 to 012.
(Preview won't update valSerialNumber after print, though)
To achieve what you want, you need to close the document after first print and open again in ExportPrintPreviewToImage, then specify valSerialNumber and number of serial copies.
Alternatively you can open document by format setup and specify copies and value, then Export preview, then print.
To upload script to forum, rename the file to .txt. (sample.xml.txt etc)
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar