Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing report preview in runtime
Message
From
28/08/2016 13:17:28
 
 
To
28/08/2016 05:44:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01640087
Message ID:
01640102
Views:
78
>>When running from My.APP, I enlarge a report preview and move it to the right. When I leave and return, calling it again, it displays in the enlarged size on the right. When I package my run time My.exe in a different area to test, I can still enlarge and move the report preview, but on retrying after closing, it starts in the original smaller size and left side position.
>>
>>This problem doesn't happen in moving regular forms around, and having the new position stick ... it's just with the report forms.
>>
>>What can I do so my users will be able to resize and keep the report preview's position changes in their run time versions as the new starting display?
>
>Provide a foxuser.dbf (probably with a different name for each user) and Set Resource to it. You can have a minimal one inside the exe with just the records related to print preview, and copy from that into each user's one.
>
>Alternately, have a form to preview in. Just instantiate the form invisibly (and have it be of a class where you have your way of saving/restoring position), and then
>
report form .... preview window (myform.name)
Thanks Dragan

Sometimes I just need a little push. I've been doing vfp for years,and somehow never got involved with FoxUser.dbf and Set Resource. It does exactly what I was looking for.

Each of the user machines already has tables with information on a number of local things in their startup folder, like the user's own printer list or encrypted machine particulars for startup verification, so dropping a copy of FoxUser.dbf there was no problem at all.

Bob
Previous
Reply
Map
View

Click here to load this message in the networking platform