Page 1 of 1

TSRVPrint PageFormat Not Recalculating

Posted: Fri Nov 08, 2013 4:40 pm
by rgsolutions
I have a TSRVPrint control in a TSRVPreview control. The print control has a default value of custom, and the default settings approximates an A4 style page. When I set the PageFormat to srvfmLetter (at runtime), the property is changed, but none of other size attributes are changed. The result is the preview is not displayed in the letter size ratio but rather the original ratio.

What other attributes do I need to set in the print and/or preview control in order to preview in a letter size format?

Posted: Sat Nov 09, 2013 1:28 pm
by Sergey Tkachenko
What's the value of SRVPrint.PrintMode ?

Posted: Sat Nov 09, 2013 9:14 pm
by rgsolutions
srvpStretchToFit

Posted: Sun Nov 10, 2013 12:12 pm
by Sergey Tkachenko
In this mode, page image is scaled from SRichViewEdit.PageProperty.PageFormat to the actual paper size.

Is this not a desired effect?

Posted: Mon Nov 11, 2013 7:38 pm
by rgsolutions
Yes, that is the desired affect.

However, my SRichViewEdit.PageProperty.PageFormat is set to srvfmLetter and I wish to display it in the same format. When I set the SRVPrint control to srvfmLetter, the control size is not changed and the display is formatted to an approximate size of an A4 format (I am not sure about the exact A4 size, but the resulting display is definately not letter size).

Let me review. My SRichViewEdit.PageProperty.PageFormat is set to srvfmLetter. I wish to display the page in the same format, so I set the PageFormat of the TSRVPrint control (at runtime) to the same value (srvfmLetter). The resulting display is NOT displayed in a letter format size.

This used to work and I recently noticed it was no longer working.

Posted: Mon Nov 11, 2013 8:47 pm
by rgsolutions
I have discovered what is happening.

My firewall was causing a side affect on the print preview. When I disabled the firewall, the print preview is correct.

Sorry for the confusion.