PassThru Printing with Embedded Spaces
Stanley - stanlyn.com
stanley at stanlyn.com
Fri Apr 3 22:47:51 PDT 2015
Hi,
I'm having trouble passing a string with embedded spaces to Anzio's pass
thru printing. I've talked with Bob and he says he isn't a filepro coder,
so I'm asking here.
I have tried replacing the backslashes with forward slashes, escaping the
slashes, and lots of other combos.
The goal of this code is to produce a pdf file with the invoice number as
its name with a ".pdf" appended, and place it in the folder bearing its
vendor id and name separated by a " - ". I've explained it all below.
When it works as expected, the filepath will look like this:
Actual path: "D:/AP_Images/AP/F/FILEP-01 - FilePro Mailing List/123456.pdf"
wz(50,*)=7{" - "{11{"/"{1{".pdf"
Field 7 represents the vendor id: "FILEP-01"
Field 11 represents the vendor name: "FilePro Mailing List"
The literal string " - " is a separator that separates the vendor id and
name for use into an existing folder name that is: "FILEP-01 - FilePro
Mailing List"
Field 1 represents the invoice number: "123456"
And the final string ".pdf" is the .extension for the file name.
dw(1)=mid(7,"1","1")
The "dw" variable holds the first character of the vendor id so we can point
it into the "F" subfolder in this case
pn(100,*)="pdf://L:/AP_Images/AP/"{dw{"/">
Variable "pn" holds the 1st part of the string that will be passed to Anzio
show raw chr("28")&"printer " &pn &wz &chr("29")
Now pass this to Anzio.
I know that this can be written as a single string. I've been breaking it
into smaller parts in an attempt to get it working.
Also I've some other list's articles about embedded spaces namely "Re:
system command to copy a file to a path with a space in it" around
03/25/2015. It's confusing because some of the advice show three ticks
several places in the string which could only be one single quote and one
double quote. I say confusing, because a single quote comments out the rest
of the line. Anyway, just something that may be preventing this to run.
Thanks,
Stanley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20150404/29fb7b8e/attachment.html>
More information about the Filepro-list
mailing list