RE: Re[2]: [U2] Printing PDF from uv {Unclassified}
"Warning, Will Robinson, WARNING" The presence of double-quotes (") _inside_ the string to be passed to DOS can provide 'surprise' results. This was fixed in 10.1.1 by patch # 5616 which includes a new function "UVRunCommand" (I think the same patch found its way into 10.0.x, but I haven't checked the Release Notes for 10.0) >From the 10.1.1 Release Notes: 5616At this release, a new GCI function, UVRunCommand, has been added. This command executes a Windows executable and has one argument. You can specify the executable name and its argument as a string. To execute the command, use C:\windows\system32\cmd.exe /c. You must use single or double quotation marks around the string argument, as shown in the following example: Result = UVRunCommand("c:\WINDOWS\system32\cmd.exe /c dir") For example, suppose that the "123.pdf" file has to go in a directory "The Users Data". The proper DOS convention is to enclose an argument with spaces in double quotes as I show it above. So, you would replace the above example with Cmd = 'AcroRd32 /p /t "The Users Data\123.pdf"' Result = UVRunCommand(Cmd) If you tried Cmd = \DOS /C 'AcroRd32 /p /t "The Users Data\123.pdf"'\ PERFORM Cmd The data received by DOS would NOT be what you expected. And, no I don't know what gets put into "Result", I haven't started testing 10.1 yet. HTH Mike > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ray Wurlod > Sent: Tuesday, 26 April 2005 19:18 > To: u2-users@listserver.u2ug.org > Subject: RE: Re[2]: [U2] Printing PDF from uv {Unclassified} > > Don't forget that UniVerse BASIC has three quote characters, > the backslash being the third. And PERFORM is more efficient > than EXECUTE (depending on flavor and/or $OPTIONS) since it > doesn't set up an extra execution level. F'r instance: > > Cmd = \DOS /C "AcroRd32 /p /t 123.pdf"\ > PERFORM Cmd > --- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ > The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re[4]: [U2] Printing PDF from uv {Unclassified}
Thanks all .. it was the DOS command that i was missing Tuesday, April 26, 2005, 12:17:40 AM, you wrote: RW> Don't forget that UniVerse BASIC has three quote characters, RW> the backslash being the third. And PERFORM is more efficient than RW> EXECUTE (depending on flavor and/or $OPTIONS) since it doesn't set RW> up an extra execution level. F'r instance: RW> Cmd = \DOS /C "AcroRd32 /p /t 123.pdf"\ RW> PERFORM Cmd RW> --- RW> u2-users mailing list RW> u2-users@listserver.u2ug.org RW> To unsubscribe please visit http://listserver.u2ug.org/ RW> __ NOD32 1.1079 (20050426) Information __ RW> This message was checked by NOD32 antivirus system. RW> http://www.nod32.com -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ Cannot open file "C:\DOCUMENTS AND SETTINGS\DAVID TOD SIGAFOOS\APPLICATION DATA\BATMAIL\COOKIES.TXT" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: Re[2]: [U2] Printing PDF from uv {Unclassified}
Don't forget that UniVerse BASIC has three quote characters, the backslash being the third. And PERFORM is more efficient than EXECUTE (depending on flavor and/or $OPTIONS) since it doesn't set up an extra execution level. F'r instance: Cmd = \DOS /C "AcroRd32 /p /t 123.pdf"\ PERFORM Cmd --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re[4]: [U2] Printing PDF from uv {Unclassified}
Mike thanks man .. that is the kind of info i was looking for dsig Monday, April 25, 2005, 4:46:42 PM, you wrote: HMM> In UniVerse Basic you can do it directly by HMM> Cmd = "DOS /c '" HMM> Cmd := HMM> Cmd := "'" HMM> EXECUTE Cmd HMM> e.g. HMM> Cmd = "DOS /c '" HMM> Cmd := "AcroRd32 /p /t 123.pdf" HMM> Cmd := "'" HMM> EXECUTE Cmd HMM> Or HMM> If it's more complicated than that, you could create a .BAT file on the HMM> fly and then execute that by the method shown above. HMM> HTh -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ Cannot open file "C:\DOCUMENTS AND SETTINGS\DAVID TOD SIGAFOOS\APPLICATION DATA\BATMAIL\COOKIES.TXT" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re[4]: [U2] Printing PDF from uv
Bob, that's the info i was looking for .. dsig Monday, April 25, 2005, 4:07:35 PM, you wrote: BW> To issue a command from within a basic program in Universe, use BW> something like this: BW> CMD = "DOS /c 'dir c:\*.dat'" BW> EXECUTE CMD CAPTURING DAT.LIST BW> I'm pretty sure the /c is case sensitive but I've never really tested BW> that. Watch the single and double quote marks, not so much of the order BW> as is pairing them up where you want them. -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ Cannot open file "C:\DOCUMENTS AND SETTINGS\DAVID TOD SIGAFOOS\APPLICATION DATA\BATMAIL\COOKIES.TXT" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: Re[2]: [U2] Printing PDF from uv {Unclassified}
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of David Tod Sigafoos > Sent: Tuesday, 26 April 2005 10:09 > To: Anthony Dzikiewicz > Cc: u2-users@listserver.u2ug.org > Subject: Re[2]: [U2] Printing PDF from uv > > Anthony, > > Thanks for that .. i guess a more specific question is .. > > from universe, running on windows, how can i 'execute' a windows > process. is there an command/API for universe to this? David, In UniVerse Basic you can do it directly by Cmd = "DOS /c '" Cmd := Cmd := "'" EXECUTE Cmd e.g. Cmd = "DOS /c '" Cmd := "AcroRd32 /p /t 123.pdf" Cmd := "'" EXECUTE Cmd Or If it's more complicated than that, you could create a .BAT file on the fly and then execute that by the method shown above. HTh Mike > > thanks [snip] The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: Re[2]: [U2] Printing PDF from uv
To issue a command from within a basic program in Universe, use something like this: CMD = "DOS /c 'dir c:\*.dat'" EXECUTE CMD CAPTURING DAT.LIST I'm pretty sure the /c is case sensitive but I've never really tested that. Watch the single and double quote marks, not so much of the order as is pairing them up where you want them. BobW > -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-u2- > [EMAIL PROTECTED] On Behalf Of David Tod Sigafoos > Sent: Monday, April 25, 2005 3:38 PM > To: Tony Gravagno > Subject: Re[2]: [U2] Printing PDF from uv > > Tony, > > thanks .. but the question is not use of Acrobat or ghost(?) or .. but > how to have uniVerse perform a 'cmd' on a windows system. I probably > wasn't very explicit in my original post. > > The ENCODE is a pretty sweet command, now that I know it is there , > but once the file is written out is there a way to get universe to > send off the printing to Acrobat on the server? > > thanks again > [snip] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: Re[2]: [U2] Printing PDF from uv
Consider IBM's wIntegrate. --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Tod Sigafoos Sent: Monday, April 25, 2005 6:09 PM To: Anthony Dzikiewicz Cc: u2-users@listserver.u2ug.org Subject: Re[2]: [U2] Printing PDF from uv Anthony, Thanks for that .. i guess a more specific question is .. from universe, running on windows, how can i 'execute' a windows process. is there an command/API for universe to this? thanks Monday, April 25, 2005, 12:50:18 PM, you wrote: AD> In Windows, the only way I know of printing pdf documents is using the AD> '/p' command line option. Actually, if you wanted to print a document AD> 123.pdf you might use; AD> AcroRd32 /p /t 123.pdf or if you use acrobat AD> Acrobat /p /t 123.pdf AD> This will leave the acrobat opened and seems 'messy' to me. It would AD> eat up memory real quick. On my PC it opens an occurrence for every AD> print you execute. It also uses the default printer ('/t' - suppress AD> asking). Not a real solution in my opinion. AD> In Linux we are doing something similar. What I do is to convert the AD> PDF to Postscript via the command AD> acroread -toPostScript 123.pdf /tmp/123.ps AD> lp -dmy_postscript_laser /tmp/123.ps AD> rm -rf /tmp/123.ps AD> rm -rf 123.pdf AD> The only thing here is that you need a Postscript enabled printer. We AD> are going to be evaluating a Xerox 4350 laser printer that actually is AD> said to print PDF files natively (probably just converts to postscript AD> by itself). So, if you can get a PDF cabable printer it makes things AD> even easier. In Windows you would just do a "print d:/my_pdf_laser AD> 123.pdf" and off it goes. AD> One other thing you should consider is how to do reprints easily. One AD> thing about printers is that they jam, run out of paper etc.. AD> Anthony AD> -Original Message- AD> From: [EMAIL PROTECTED] AD> [mailto:[EMAIL PROTECTED] On Behalf Of David Tod AD> Sigafoos AD> Sent: Monday, April 25, 2005 1:52 PM AD> To: u2-users@listserver.u2ug.org AD> Subject: [U2] Printing PDF from uv AD> I must say this has been a very interesting project .. learned lots of AD> great stuff (some from this group) and had to come up with many work AD> arounds .. i can feel the brain cells firing. AD> Now .. how to print a PDF to a specific printer .. AD> is there a way to do this from universe? 10.0.1 on windows AD> Primarily the client has a shipping package running under windows which AD> uses ODBC to update the uniVerse table with shipping info. There is a AD> trigger on this table which we will enhance to generate the PDFs (postal AD> forms etc) and then once generated (by the trigger AD> process) we want UV to 'print' the PDF form to a specific printer. AD> I am looking for ideas, directions etc to get this working .. everything AD> is cool except the printing bits .. AD> Thanks again --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Printing PDF from uv
David, We work the other direction using a PCL to PDF tool from visual software in the UK. Works quite well. Anyhow, we take data intended for printing (that is PCL formatted) via a HOLD file and using PCLtoPDF to create PDF's for emailing. Otherwise, we just print PCL to our laserjets directly. If your source documents is a PDF, that would not work in this manner. But you said that a trigger 'generates' a PDF. So I'm assuming your generating the PDF yourself? If so, generate a PCL file first and print that. Then its simply a command line to get a PDF from a PCL file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Tod Sigafoos Sent: Monday, April 25, 2005 10:52 AM --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re[2]: [U2] Printing PDF from uv
Tony, thanks .. but the question is not use of Acrobat or ghost(?) or .. but how to have uniVerse perform a 'cmd' on a windows system. I probably wasn't very explicit in my original post. The ENCODE is a pretty sweet command, now that I know it is there , but once the file is written out is there a way to get universe to send off the printing to Acrobat on the server? thanks again Monday, April 25, 2005, 2:41:39 PM, you wrote: TG> I did a little googling on the topic and found the typical assortment of TG> PDF tools in the market. They range in cost from free to about $1500, with TG> very little relation between cost and quality - a perfect example of how TG> the mystery of the medium allows some people to command whatever the market TG> will bear. PlanetPDF.com and PDFStore.com have a good assortment of tools. TG> Try using this string to search in Google: TG> print pdf "command line" TG> Only you can decide about what's good value from what's outrageous. TG> One interesting hit was this one: TG> http://www.stat.rice.edu/~helpdesk/compguide/node13.html TG> It offers a couple brief but helpful tips. TG> HTH -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re[2]: [U2] Printing PDF from uv
Anthony, Thanks for that .. i guess a more specific question is .. from universe, running on windows, how can i 'execute' a windows process. is there an command/API for universe to this? thanks Monday, April 25, 2005, 12:50:18 PM, you wrote: AD> In Windows, the only way I know of printing pdf documents is using the AD> '/p' command line option. Actually, if you wanted to print a document AD> 123.pdf you might use; AD> AcroRd32 /p /t 123.pdf or if you use acrobat AD> Acrobat /p /t 123.pdf AD> This will leave the acrobat opened and seems 'messy' to me. It would AD> eat up memory real quick. On my PC it opens an occurrence for every AD> print you execute. It also uses the default printer ('/t' - suppress AD> asking). Not a real solution in my opinion. AD> In Linux we are doing something similar. What I do is to convert the AD> PDF to Postscript via the command AD> acroread -toPostScript 123.pdf /tmp/123.ps AD> lp -dmy_postscript_laser /tmp/123.ps AD> rm -rf /tmp/123.ps AD> rm -rf 123.pdf AD> The only thing here is that you need a Postscript enabled printer. We AD> are going to be evaluating a Xerox 4350 laser printer that actually is AD> said to print PDF files natively (probably just converts to postscript AD> by itself). So, if you can get a PDF cabable printer it makes things AD> even easier. In Windows you would just do a "print d:/my_pdf_laser AD> 123.pdf" and off it goes. AD> One other thing you should consider is how to do reprints easily. One AD> thing about printers is that they jam, run out of paper etc.. AD> Anthony AD> -Original Message- AD> From: [EMAIL PROTECTED] AD> [mailto:[EMAIL PROTECTED] On Behalf Of David Tod AD> Sigafoos AD> Sent: Monday, April 25, 2005 1:52 PM AD> To: u2-users@listserver.u2ug.org AD> Subject: [U2] Printing PDF from uv AD> I must say this has been a very interesting project .. learned lots of AD> great stuff (some from this group) and had to come up with many work AD> arounds .. i can feel the brain cells firing. AD> Now .. how to print a PDF to a specific printer .. AD> is there a way to do this from universe? 10.0.1 on windows AD> Primarily the client has a shipping package running under windows which AD> uses ODBC to update the uniVerse table with shipping info. There is a AD> trigger on this table which we will enhance to generate the PDFs (postal AD> forms etc) and then once generated (by the trigger AD> process) we want UV to 'print' the PDF form to a specific printer. AD> I am looking for ideas, directions etc to get this working .. everything AD> is cool except the printing bits .. AD> Thanks again --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Printing PDF from uv
I did a little googling on the topic and found the typical assortment of PDF tools in the market. They range in cost from free to about $1500, with very little relation between cost and quality - a perfect example of how the mystery of the medium allows some people to command whatever the market will bear. PlanetPDF.com and PDFStore.com have a good assortment of tools. Try using this string to search in Google: print pdf "command line" Only you can decide about what's good value from what's outrageous. One interesting hit was this one: http://www.stat.rice.edu/~helpdesk/compguide/node13.html It offers a couple brief but helpful tips. HTH Tony --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Printing PDF from uv
In Windows, the only way I know of printing pdf documents is using the '/p' command line option. Actually, if you wanted to print a document 123.pdf you might use; AcroRd32 /p /t 123.pdf or if you use acrobat Acrobat /p /t 123.pdf This will leave the acrobat opened and seems 'messy' to me. It would eat up memory real quick. On my PC it opens an occurrence for every print you execute. It also uses the default printer ('/t' - suppress asking). Not a real solution in my opinion. In Linux we are doing something similar. What I do is to convert the PDF to Postscript via the command acroread -toPostScript 123.pdf /tmp/123.ps lp -dmy_postscript_laser /tmp/123.ps rm -rf /tmp/123.ps rm -rf 123.pdf The only thing here is that you need a Postscript enabled printer. We are going to be evaluating a Xerox 4350 laser printer that actually is said to print PDF files natively (probably just converts to postscript by itself). So, if you can get a PDF cabable printer it makes things even easier. In Windows you would just do a "print d:/my_pdf_laser 123.pdf" and off it goes. One other thing you should consider is how to do reprints easily. One thing about printers is that they jam, run out of paper etc.. Anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Tod Sigafoos Sent: Monday, April 25, 2005 1:52 PM To: u2-users@listserver.u2ug.org Subject: [U2] Printing PDF from uv I must say this has been a very interesting project .. learned lots of great stuff (some from this group) and had to come up with many work arounds .. i can feel the brain cells firing. Now .. how to print a PDF to a specific printer .. is there a way to do this from universe? 10.0.1 on windows Primarily the client has a shipping package running under windows which uses ODBC to update the uniVerse table with shipping info. There is a trigger on this table which we will enhance to generate the PDFs (postal forms etc) and then once generated (by the trigger process) we want UV to 'print' the PDF form to a specific printer. I am looking for ideas, directions etc to get this working .. everything is cool except the printing bits .. Thanks again -- DSig David Tod Sigafoos --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Printing PDF from uv
I am using pdf2ps then sending that output to a unix printer and works okay. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Tod Sigafoos Sent: Monday, April 25, 2005 11:52 AM To: u2-users@listserver.u2ug.org Subject: [U2] Printing PDF from uv I must say this has been a very interesting project .. learned lots of great stuff (some from this group) and had to come up with many work arounds .. i can feel the brain cells firing. Now .. how to print a PDF to a specific printer .. is there a way to do this from universe? 10.0.1 on windows Primarily the client has a shipping package running under windows which uses ODBC to update the uniVerse table with shipping info. There is a trigger on this table which we will enhance to generate the PDFs (postal forms etc) and then once generated (by the trigger process) we want UV to 'print' the PDF form to a specific printer. I am looking for ideas, directions etc to get this working .. everything is cool except the printing bits .. Thanks again -- DSig David Tod Sigafoos --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Printing PDF from uv
I must say this has been a very interesting project .. learned lots of great stuff (some from this group) and had to come up with many work arounds .. i can feel the brain cells firing. Now .. how to print a PDF to a specific printer .. is there a way to do this from universe? 10.0.1 on windows Primarily the client has a shipping package running under windows which uses ODBC to update the uniVerse table with shipping info. There is a trigger on this table which we will enhance to generate the PDFs (postal forms etc) and then once generated (by the trigger process) we want UV to 'print' the PDF form to a specific printer. I am looking for ideas, directions etc to get this working .. everything is cool except the printing bits .. Thanks again -- DSig David Tod Sigafoos --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/