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: 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[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 G, 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: 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: 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 G, 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 {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 := DOS Command 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/