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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zooming the Reports

Status
Not open for further replies.

teknik

Programmer
Feb 27, 2001
33
IN
If the Report in Zoomed to 75% the characters are not displayed properly. It is not at all readable. Please give us some solution. The Report Font is MS sanserif and Font size is 10.
 
teknik

One alternative to the VFP report preview would be to run the report into a .pdf file and view the .pdf.

faq184-2143 will get you going as far as creating a .pdf from a report is concerned.

You could either use the free Adobe Acrobat Viewer or preferably create a VFP viewer using the ActiveX control version of the Adobe Acrobat Viewer.

You will then be able to preview your report accurately. HTH

Chris [pc2]
 
teknik

There is another alternative which I am posting separately to avoid confusion.

This technique is really intended for a single page report.

The methodology is that you create an empty form. The form then "reads" the report and then adds read-only form objects which equal the report objects.

Textboxes simulate labels by property changes and thus you have a scrollable read-only form viewing your report at 100%.

In the .Resize() event of the form, all form objects are scaled in accordance with the form's new dimensions, the width/height being a constant.

You can resize the form by dragging to size, by changing the value of a spinner on a toolbar, or selecting fixed values from a combo box on a toolbar.



What you also have now is the part of the means to allow a user to modify a report without being exposed to the VFP report writer.

Right clicking on a control in the form enables you to modify the control's properties.

To facilitate that you need an appropriate toolbar or custom properties form.

The changes immediately show on the form and are written to the .frx, thus modifying the underlying report.

Typical uses are for any single page document, where a user may want to changes font sizes and styles, graphics, shapes, and lines.

This alternative is not for the faint hearted, but you will find clients appreciate the flexibility it gives them, should user modifyable reports be required. HTH

Chris [pc2]
 
Teknik

A report preview is just that, "a preview of what is it will look like from the printer", I don't think it was ever meant as anything else. But getting a better video card might help. Reducing the hardware acceleration on the present video also might help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top