Check to make sure you don't have any printer driver info stored in the the report (usually first record (objtype=1) .EXPR, .TAG, TAG2 fields) There are some values you can leave in the EXPR field, like Orientation, etc. Be awarw that if you edit the report again in the designer, you'll have to deal with those fields again. VFP9 has a check box to save the printer info, but earlier versions didn't have that.
Fred On Mon, Dec 3, 2012 at 6:04 PM, Paul McNett <p...@ulmcnett.com> wrote: > I'm having trouble with one of my legacy VFP8 apps on Windows 7/64. We > also have XP > and Windows7/32 clients that don't have the issue. > > This is in my report framework and I offer different output options from > preview, > print, email, to fax. When sending to the fax server, I run the report to a > postscript file and send the .ps file to the fax server. > > To do this I set up a "Generic PostScript Printer" which is just a HP > Laserjet 2800 > PS printer driver set to print to file as the port. > > My code then iterates getprinters() and if it finds "Generic PostScript > Printer" it > uses that and issues (simplified code below): > > SET PRINTER TO NAME "Generic PostScript Printer" > REPORT FORM (reportfrx) to FILE (outfile) > SET PRINTER TO DEFAULT > > As I said, in all other systems it works just fine but on the Win7/64 > system I just > set up, apparently the printer isn't getting set to the postscript because > the file > is (apparently) PCL (the user's default printer is PCL, which leads me to > believe > that perchance the SET PRINTER call didn't really set the printer for some > reason). > > I need to do some detailed testing on this one system but I can't until > the user is > gone for the day, so I thought I'd post this here in case anyone has any > suggestions > in the meantime. > > Paul > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAJCBksosKFvAxNO9FU=pzkvppsdl3yvvz7nmnqvq3c2cx33...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.