Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Preview issue

Status
Not open for further replies.
Mukesh,

you might be missing the files reportoutput.app and system.app; they should normally be included in the same folder as the VFPr9.dll.

hth

n
 
But this happens only with this particular report. Preview other reports are ok.

also print of this report is also ok, only issue is with preview of this report only

Mukesh Khandelwal
 
Mukesh,

Unless someone else recognises this problem i only have more questions than answers.....

how does this one report differ from other reports in the same project?.

open up the report (modify report) and check the 'properties' especially page setup and default font.

Are you using the standard print preview or foxypreviewer/XFRX ? Any report listeners?

Can you share the line of code that calls this report preview?

Do you have
Code:
set reportbehaviour 90
set ?

n
 
I have seen this behaviour with non-proportional fonts and a Screen Zoom factor <>100%
Maybe the other reports use proportional fonts only?
 
@Nigel
In program, it is "Set reportbehaviour" value is 80, i am using VFP version 9
i am not using Foxypreviewer

Line of code that is printing report
REPORT FORM (lcReportForm) &lcClause PREVIEW WINDOW PrintPreView

@Dan
Screen Zoom factor is already 100%

Thanks

Mukesh Khandelwal
 
Mukesh,

i think Dan is on the right track here ....

does the problem go away if you change the font to (for instance) Arial?

Is the windows control panel setting for the display on this PC set to "scale" over 100%?

n
 
Mukesh,

I'm not sure if this will help, but you might try putting this code at the start of your main program:

Code:
DECLARE INTEGER SetProcessDPIAware IN WIN32API
SetProcessDPIAware()

This solved a report preview problem for me recently. The symptoms weren't quite the same as what you are seeing, but it might be worth a try. If it doesn't make any difference, then remove those lines in case they have any other unwanted effects.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hi Mike/Nigel

Sorry for my delayed response. Thanks for the suggested solutions.

I have checked the issue at client machine it is happening when we print Foxpro report directly to "ADOBE PDF PRINTER". The solution we gave is to use "MICROSOFT Print to PDF" instead of "ADOBE"

Thanks


Mukesh Khandelwal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top