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()
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()
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.