Web Connection
Re: Wish I could stop using 'File' mode!!
03/19/2010
09:20:51 AM
2W30LQ2HT Show this entire thread in new window
Gratar Image based on email address
From:
Brandon Harker
To:
Marty Glynn 
Attachments:
None
I need to create PDF files. When I invoke "Report Form to &xerox.printer",I get a "co create" error unless I'm in file mode. I'm thinking of writing a separate app using wwAsyncWebRequest to handle printing. Anybody got a better idea?

I use this technique:
I don't like maintaining separate .exe's on the server for these type issues, so instead, in my applications startup program, I have:

LPARAMETERS lnAppMode
lnAppMode=VAL(TRANSFORM(lnAppMode))

and then I conditionally do different things based on the value of lnAppMode. In this way, I'm not maintaining different .exe's but I can extend functionality for async processes.

Now just call your own exe like this:
lcFile='c:\mypath\mypath.exe'
lcParms='1'

! /N &lcFile &lcParms