Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need VFP9 commands to print in landscape without Report Forms 1

Status
Not open for further replies.

amatureo

Programmer
Aug 5, 2008
38
US
Trying to add Ubuntu 18.04 workstations to a LAN of Win7 computers. My Visual Foxpro 9 compiled exe runs via wine on the Ubuntu installation. The VFP9 exe on Win7 can access and manipulate data on the Linux computer. The VFP9 exe on Linux can access and manipulate data on the Win7 computers. The exe on the Linux computer can print to Win7 computers except when Report Forms are used. Instead of printed lines, all Report Forms print as solid black boxes. I thought that it might be a font problem, but I've been unable to change to any font that prints properly. I've been trying to solve this problem for a few weeks now - no joy.

I decided to rewrite my printouts without Report Forms, and I've made some progress. The one sticking point is that I haven't figured out how to use a VFP command to change the orientation from Portrait to Landscape. It was simple in Report Forms, but I can't find the answer to hard code commands in my exe. Most printouts are in Portrait, but I need a solution to all for a few Landscape orientations. I can issue sys(1037) and manually change the setup, but I need a way to avoid the user interaction.

If anyone can steer me in the right direction I'd be eternally grateful.

 
When trying to use Landscape Report Forms that printed fine with ReportBehavior 90, RB80 gave me errors like "PageHeader band is too large to fit on page". I was able to adjust page settings on those Report Forms to make them work. I don't understand why RB90 worked while RB80 didn't, but I'm up and running.

Again, I thank all you guys for your expertise. It's nice to know I'm not drifting alone on my programming raft.
 
As said the different engines use different implementations to draw. I earlier talked of a change of GDI library. It's even more drastic. Before VFP9 Foxpro didn't use GDI or GDI+, it just starts using it with VFP9. That's not only true about reports but also about forms and controls. On top of that in Windows printing, GDI printers are a norm, in Linux anything printing is based on Postscript, as far as I know. I guess regarding forms you have to set themes off, so VFP also goes classic in drawing its forms graphics. I guess the compatibility of the Windows emulation still lacks in that area.

As I said earlier in 90 mode text gets wider, typically, so that makes it odd the bands are said to be too wide in 80 mode. I'd expect that to be reversely true. If you didn't confuse the modes, you have a problem that landscape only works in 90 mode and text only in 80 mode, don't you?

Bye, Olaf.

Olaf Doschke Software Engineering
 
All Report Forms printed correctly in ReportBehaviour 90 for Windows computers running the VFP compiled exe. No Report Form printed correctly for Linux computers running the VFP compiled exe until I changed to ReportBehaviour 80. ReportBehaviour 80 Linux computers could then print Portrait Report Forms, but not Landscape Report Forms. Adjusting page settings on Landscape Report Forms finally allowed Linux to print them correctly.

There was no need to change page settings for Portrait Report Forms to print correctly with RB 80. Go figure!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top