Totally New To Vb Script, Image Placing And Alignment Help Needed
Hi
I am totally new to VB Scripting but have used XML scripts for some time now with Commander and recently Integration.
I have a script such as this:
<?xml version="1.0" encoding="UTF-8"?>
-<XMLScript Version="2.0">
-<Command Name="BEGINROLLED">
-<Print>
<Format CloseAtEndOfJob="true">C:\Mugs\EndJobNumber.btw</Format>
-<PrintSetup>
<IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel>
<Printer>PowerDriver Mug Printer I</Printer>
</PrintSetup>
-<NamedSubString Name="PickListNo">
<Value>WPK948720</Value>
</NamedSubString>
</Print>
</Command>
-<Command Name="SORD889527_10000">
-<Print>
<Format CloseAtEndOfJob="true">C:\Mugs\MG0445.btw</Format>
-<PrintSetup>
<IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel>
<Printer>PowerDriver Mug Printer I</Printer>
</PrintSetup>
</Print>
</Command>
-<Command Name="SORD889527_20000">
-<Print>
<Format CloseAtEndOfJob="true">C:\Mugs\MG0689.btw</Format>
-<PrintSetup>
<IdenticalCopiesOfLabel>6</IdenticalCopiesOfLabel>
<Printer>PowerDriver Mug Printer I</Printer>
</PrintSetup>
</Print>
</Command>
-<Command Name="SORD889527_30000">
-<Print>
<Format CloseAtEndOfJob="true">C:\Mugs\MG0692.btw</Format>
-<PrintSetup>
<IdenticalCopiesOfLabel>3</IdenticalCopiesOfLabel>
<Printer>PowerDriver Mug Printer I</Printer>
</PrintSetup>
</Print>
</Command>
-<Command Name="ENDROLLED">
-<Print>
<Format CloseAtEndOfJob="true">C:\Mugs\BeginJobNumber.btw</Format>
-<PrintSetup>
<IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel>
<Printer>PowerDriver Mug Printer I</Printer>
</PrintSetup>
-<NamedSubString Name="PickListNo">
<Value>WPK948720</Value>
</NamedSubString>
</Print>
</Command>
</XMLScript>
That will print various amounts of copies of MG0445, MG0689 and MG0692 with a start and end job number to a dye sublimation printer and it works fine
The MGXXXX.btw files are originally photoshop files (MGXXXX.PSD) placed as embedded pictures into .btw files and saved as MGXXXX.btw.
Document size is: 98x237mm (blank template)
Image size is: 98x237mm
Alignment is top left: 0mm,0mm
Image: Mirrored
I have approximately 2500 .psd files that I need to make into .btw files
So I am looking for some automation to open document, place image at size and align then mirror then save taking original .PSD filename and renaming it MGXXXX.btw
The MGXXXX.btw files are originally photoshop files (MGXXXX.PSD) placed as embedded pictures into .btw files and saved as MGXXXX.btw.
Document size is: 98x237mm (blank template)
Image size is: 98x237mm
Alignment is top left: 0mm,0mm
Image: Mirrored
I have approximately 2500 .psd files that I need to make into .btw files
So I am looking for some automation to open document, place image at size and align then mirror then save taking original .PSD filename and renaming it MGXXXX.btw
There are two ways that I think I could do this:
1.Embed the vbscript into the xml at the time the XML is sent to Commander/Intergration (Is this possible and would it be too slow)
2. Just have a VBscript that will create all my .btw files for me
At the very least I would like some guidance/example as to how to automate open document, place image at size and align then mirror then save as (if possible save as)
Any help would be greatly appreciated
Many thanks
Andy Green
1.Embed the vbscript into the xml at the time the XML is sent to Commander/Intergration (Is this possible and would it be too slow)
2. Just have a VBscript that will create all my .btw files for me
At the very least I would like some guidance/example as to how to automate open document, place image at size and align then mirror then save as (if possible save as)
Any help would be greatly appreciated
Many thanks
Andy Green
0
-
I suggest you take a look at the .NET automation reference in the BarTender Help system under "Automating BarTender", and the .NET SDK samples component if you install it.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar