Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview a report without having the title of the designe
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00161176
Message ID:
00161214
Views:
13
If you define a window for the report preview to be shown in you can specify a title for the report

DEFINE WINDOW lw_report FROM 0,0 TO SROWS(), SCOLS() title "My Report"

REPORT FORM myReport PREVIEW WINDOW lw_report

Charles

>Hi, everyone!
>
>I have designed a report and want to able to both print it out and preview it on the screen. When I use "REPORT FORM myForm PREVIEW", I encounter two issues. First, the user will get an error if he clicks the menu bar I build; the message says, "Activeform is not an object". My solution is to create a dummy menu from VFP's system menu. It is not very slick but seems to be doing the job. The second and unsolved issue is that the caption of the window containing the report is now showing something like "Report Designer: myReport.frx". I used _Screen.Caption trying to replace it with something more user-friendly, but it only changed the caption of the screen of my application. I assume I could go for API calls, but it sounds like an overkill...
>
>I would appreciate it greatly if you would point to me the right directions for both of the issuses.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform