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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Preview Problem 2

Status
Not open for further replies.

sjpatrick

Programmer
Sep 4, 2001
54
US
Sorry for the alliteration...
When running all of my forms as top-level and _vfp nicely invisible, there is the unfortunate side effect that print preview windows do not appear.
I've tried "define window...in desktop" and directing my output there, but no luck.
Any ideas?
Thanks in advnace...
 
What about this?
_vfp.visible = .t.
report form yourreportname preview
_vfp.visible = .f.
 
That's as homely as it sounds. :)
I'm trying to avoid that option.
Thanks anyhow.
 
Try the following


define window showreport from 0,0 to 60,100 in desktop
** (or whatever you preview windows size is)
activate window showreport
keyboard '{ctrl+f10}' ** the trick to maximize
repo form myreport to prin preview in window showreport deactivate window showreport
release window showreport


** not the "IN" window statement

Rianeiro
 
That almost does it, except that showreport window ends up a child of the calling window rather than on the desktop all its own.
That is also not a supported clause in VFP5, which is my preferred language to finish this project in, if possible.
But that was the closest yet to a workable solution and you have my thanks. (And my vote... :) )
Any other takers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top