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!

Report preview window 1

Status
Not open for further replies.

silvania

Programmer
Sep 17, 2001
2
RO
Can I change the caption of the Print preview window from "Report Designer - myreport.frx - Page 1" in "Report Designer - Invoices list - Page 1" for instance?


 
hi
you can make a form as a class where the form window is maximised and show window set to "as top level". here only you can put in a standard caption.
when you have to preview the report

prevReportForm = NEWOBJECT("prevWnd", "prevWnd.vcx")
* Make the window settings with your preferences
WITH prevReportForm
.Name = "prevReportForm"
*.Caption = "Report Preview" && you can put in something
KEYBOARD "{ctrl+f10}"
.Visible = .T.
ENDWITH

REPORT FORM myreport PREVIEW WINDOW prevReportForm
prevReportForm.Release()

ajoyk
 
hi
you can save a form as a class say prevWnd.vcx where the form window is maximised and show window set to "as top level". here only you can put in a standard caption.
when you have to preview the report

prevReportForm = NEWOBJECT("prevWnd", "prevWnd.vcx")
* Make the window settings with your preferences
WITH prevReportForm
.Name = "prevReportForm"
*.Caption = "Report Preview" && you can put in something
KEYBOARD "{ctrl+f10}"
.Visible = .T.
ENDWITH

REPORT FORM myreport PREVIEW WINDOW prevReportForm
prevReportForm.Release()

ajoyk
 
Thanks for your answer
It is nice. I'm new with Visual FoxPro but I catched the point from the first message and now I use your idea.

I would like that that top level form not to be maximised, and to find a way to chage the 'Report Designer' window; something like MODIFY WINDOW 'Report Designer' TITLE ... and to chage only a part from that title (caption) :) BUT...
Thanks once again :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top