I'm using Foxypreviewer to preview my reports. Works great, Having an issue with the Font size being too large and the preview window cutting off RHS of page. Any reccomendations on how to fix please?
This might be to do with DPI Awareness - a topic we have discussed several times in this forum. (Alhtough I'm not aware of it being an issue with FoxyPreviewer.)
If so, the solution is to run this code near the start of your main program:
Code:
DECLARE INTEGER SetProcessDPIAware IN WIN32API
SetProcessDPIAware()
For further information, see thread184-1821313.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Thank you, I've inserted the code you suggested. It sorted out the preview, but now the application doesn't launch in full screen, even though I have windowstate set to 2 (Maximized)
A FoxyPreviewer prerequisite (requirement) is SP2, you run VFP9 without any SP and hotfix.
The service packs and the last hotfixes made some fixes in VFP reporting. Mikes advice about using DPI awareness might be more important about your specific issue, but it's advisable in general to upgrade your VFP9 IDE, the built exe and runtimes to SP2 Hotfix KB968409. It's explained in detail how to get there.
I'd also look into the overview of VFP versions, SPs and Hotfixes from The Bereznikers:
- VFP 9 (RTM, SP 1, SP2) don't work correctly in report behavior mode 90 (reportlistener) if DPI text size is different 100%
- How to fix? Answer is in Mikes' post.
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.