riptramm


If our OKI Microline 320 turbo printer always ejects a page after the command <<REPORT FORM myreportfile.frx TO PRINTER NOPAGEEJECT>> in a program, is this in all likelihood a VFP 9 software bug or is there a simple solution other than printing to a text file Could it be a faulty installation Also we've found that in printing 40 reports using VFP9 report forms, 3 or 4 will print out of order. What's up with that !!!



Re: REPOST: NOPAGEEJECT not working in VFP9

Dan Freeman


VFP doesn't actually print anything.

It creates a picture in memory and tosses that picture out to the Windows ooze. From there, the Windows print queue handles all communication with the printer driver and then the printer driver decides what to do.

I'd check to see if there's an updated printer driver for that printer.





Re: REPOST: NOPAGEEJECT not working in VFP9

dni

You need to have latest printer drivers installed and printer correct configurated in network environment.There is a option for page eject also in printer properties.

If still have it then may is something in vfp.May be reports are old and you may need to put report engine behaviour for backward compatibility (SET REPORTBEHAVIOR 80).







Re: REPOST: NOPAGEEJECT not working in VFP9

riptramm

Dear Dan,

Thanks so much for your reply. My son (the computer whiz) checked for updated drivers and found none that would help. He thinks we have the latest and greatest -- OKI 320 Turbo/D (IBM) for our OKI 320 Turbo 9 pin impact printer. I'm trying to print two separate short reports concerning the same subject matter on one page. Can you print 2 different reports to one page with your VFP version and printer If you can, maybe it's an installation problem on my end.

I had no problem doing this in FP 2.5. I sure don't see the same ability to not page eject after a report prints in the VFP 9 report designer as was available in FP 2.5 designer. As a work around I'm trying to use my report forms to print to a text file and then print the text file. The following code <<REPO FORM myreportfile1.frx TO FILE mytextfile ASCII>> followed by <<REPO FORM myreportfile2.frx TO FILE mytextfile ADDITIVE ASCII>> chains the reports together with the correct content but the second report still starts at the top of the next page. AARRGH!!! When I open the text file to view it, multiple uncalled for blank lines are right there in between the two reports. I guess the image VFP 9.0 is outputting for each report form is always for a full page maybe Or maybe the VFP 9 report form is designed to always page eject automatically when finished I've heard that NOPAGEEJECT is for duplex front and back of same page printing. Regardless It sure doesn't help me with this problem. Any other ideas

Thanks again,

Rip





Re: REPOST: NOPAGEEJECT not working in VFP9

Naomi Nosonovsky

Hi,

I'm not sure if this can help you with your question, but you may try to set reportbehavior to 80 and see, if this would allow you to achieve correct ASCI output.





Re: REPOST: NOPAGEEJECT not working in VFP9

Aleniko

No, your problem is not with a printer driver.

What's more interesting is that with the old versions of foxpro you had the options of page eject either before, or after printing. You could also unselect all. And the old versions of foxpro had by default the 'eject page BEFORE report' selected. Nothing like that in VFP.

So, once again, not every rendering problem with VFP is a driver issue :-)








Re: REPOST: NOPAGEEJECT not working in VFP9

Naomi Nosonovsky

I found an interesting suggestion by Tore Bleken in another forum on a problem similar to yours. I'll post his suggestion as is, hopefully it would be helpful.

=====================================================================================

As far as I can remember, you supress the "first" page eject by adding Noeject, or was it Nopageeject, to the Report.. command. Then you "eat" the "second" page eject by re-directing it to a dummy file.

When you report to a dot matric printer, Visual FoxPro will usually send a form feed to the printer before the report is started, to make sure that you always start on a new page. This form feed command must be "eaten" so that it is not sent to the printer.

Report form ... nopageeject
Set printer to file dummy.xyz
Eject
Set printer to
Erase dummy.xyz





Re: REPOST: NOPAGEEJECT not working in VFP9

riptramm

Thanks for you reply! SET REPORTBEHAVIOR 80 doesn't seem to affect the results. Also in VFP 9 I do not see the eject option under printer properties. Can you print 2 short different reports using different tables on one page in your version of VFP



Re: REPOST: NOPAGEEJECT not working in VFP9

Naomi Nosonovsky

EJECT is a command, not an option. Tore's idea is to issue EJECT to a dummy file. I haven't tried this idea, but you may quickly try it, e.g.

report form myFirstReport to printer noconsole nopageeject

set printer to dummy.txt

eject

set printer to

report form mySecondReport ..





Re: REPOST: NOPAGEEJECT not working in VFP9

riptramm

Thanks for your reply! Can you print 2 different reports with REPORT FORM command using 2 different tables on one page using your version of VFP Maybe it's my installation

Your reply seems spot on, especially since when I use <<REPORT FORM myreportfile.frx TO FILE mytextfile ASCII>> to print to a text file, I get blank lines after the report and before the next report which has been successfully chained to it using ADDITIVE ASCII. Doesn't that mean a page advance after is being issued by VFP for every REPORT FORM command Did the development team for VFP take that control away from us and try to give it back unsuccessfully with NOPAGEEJECT Or maybe NOPAGEEJECT just works for duplex printing





Re: REPOST: NOPAGEEJECT not working in VFP9

dni

I did not try but it is possible in vfp9 without any problem if you join in one the 2 reports.




Re: REPOST: NOPAGEEJECT not working in VFP9

riptramm

Hey Naomi,

Thanks for your reply! SET REPORTBEHAVIOR 80 doesn't seem to affect the results. Can you print 2 different short reports using the REPORT FORM command on one page with your version of VFP Maybe it's my installation.

I appreciate your stab at my problem with the code you passed along. However, if when using REPORT FORM to print to a text file, VFP automatically issues a page advance after, I wonder if that code will work. Thanks anyway!

Rip





Re: REPOST: NOPAGEEJECT not working in VFP9

riptramm

Hey Naomi,

Thanks again for your reply. I was replying to DNI when he/she said an EJECT option was in printer properties. I appreciate what you are saying; however, IMHO it seems the page advance after is embedded in every REPORT FORM by the VFP developers. Maybe the only solution is to write code to edit the chained text file and eliminate the blank lines. My son is working on that angle.

Rip





Re: REPOST: NOPAGEEJECT not working in VFP9

Naomi Nosonovsky

Hi Rip,

dni is right that two reports can be chained together. I personally haven't tried it and right now I have to work with VFP8, unfortunately. Please check here http://www.berezniker.com/display/VFP/VFP+9.0+Report+Writer for several good links to articles. I think in Cathy's second article you may find an information how to chain two reports together.





Re: REPOST: NOPAGEEJECT not working in VFP9

Tamar E. Granor

No, you can't put two reports on the same side of a page in any Windows version of VFP. What NoPageEject gives you is the ability to put two reports back to back.

Tamar