Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Preview shifts data to right.
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00192064
Message ID:
00192107
Views:
17
>>>Have you opened the .FRX file as a table and, in the FIRST RECORD ONLY, deleted the first 3 lines in the EXPR field, and delete everything from the TAG and TAG2 fields?
>>
>>No I have not, and I am confused about having to edit the frx for printer specific data. If doing this solves the problem, does that mean I need to edit the frx in code everytime before I "modify report"? Does most code edit the tag, tag2, and expr fields before they modify report?
>>
>
>Yes. That stuff in record 1 of every .FRX is specific to the default windows printer when the report was last modified. This is not necessarily the printer nor the specifics of the default printer on someone else's computer.

With all due respect (and that's a lot, Mark :) I think the answer should be "No, don't edit it before you MODIFY REPORT, edit it after you MODIFY REPORT, and before you compile it into your APP/EXE." It's the MODIFY REPORT command which puts the printer-specific info into the frx.

If you have MODIFY REPORT commands in your APP/EXE to allow the end-users to change the reports before using them, I'd suggest you put code after the MODIFY REPORT commands to do the Tag, Expr1, Expr2 editing in your code. Unless you can rely on the fact that the user who is editing the report will always be sending that report to the printer which was set as their windows default when they modified it.

My US$.02
- Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform