Using VPM6 report in VPM9

The place for peer-to-peer support for Visual ProMatrix versions older than VPME 9.1.

Using VPM6 report in VPM9

Postby wftdata » Tue Jan 06, 2015 10:34 pm

Hi,

I converted an app from VPM6 - VPM9. I have several reports so I set ENGINEBEHAVIOR to 70 so I can run my reports for now without issue. When I used the VPM Preview, the printer setup button on the form displayed page setup instead and it did not display the form to change the printer as before. Any ideas why this is happening and how to fix it? I need the users to be able to change printers as before!

Thanks,

Bill
wftdata
 
Posts: 92
Joined: Thu Jun 23, 2011 8:42 pm
Location: East Moriches, NY 11940

Re: Using VPM6 report in VPM9

Postby Bob » Wed Jan 07, 2015 7:37 am

Not sure about this, but earlier versions of FoxPro stored printer info in the report file by default. In VPM 9 this was off by default. You might be able to determine if this is the reason by removing the printer info from the report. open the report in FoxPro as a dbf from the command window: USE myReport.frx ... then explore the memo fields of the first record.
Bob
 
Posts: 718
Joined: Mon Jun 14, 2010 6:53 am
Location: Near Albany, NY

Re: Using VPM6 report in VPM9

Postby wftdata » Wed Jan 07, 2015 1:26 pm

Thanks Bob for the reply.

I did remove the printer info in the report frx using nukeprintinfo.prg. It didn't change anything. Maybe some else has seen this before.

Regards,

Bill
wftdata
 
Posts: 92
Joined: Thu Jun 23, 2011 8:42 pm
Location: East Moriches, NY 11940

Re: Using VPM6 report in VPM9

Postby Bob » Wed Jan 07, 2015 6:18 pm

I think this is the command you need to use when launching the report:

REPORT FORM MyReport TO PRINTER PROMPT PREVIEW
Bob
 
Posts: 718
Joined: Mon Jun 14, 2010 6:53 am
Location: Near Albany, NY

Re: Using VPM6 report in VPM9

Postby wftdata » Thu Jan 08, 2015 9:59 am

I use: DO FORM ('S'+_SCREEN.oApp.cCurPre+'UPrt') WITH 'Invoice,report', using the ProMatrix Form.

I guess that form doesn't work anymore. The above suggestion works fine. Thank You.


Bill
wftdata
 
Posts: 92
Joined: Thu Jun 23, 2011 8:42 pm
Location: East Moriches, NY 11940


Return to VPM - older versions

Who is online

Users browsing this forum: No registered users and 3 guests

cron