Hi,
I am trying to use RadRichTextBox to print envelopes. I have defined the proper page size and it looks good on the screen. However, when I print, the text starts at the middle of the page and gets cut off. Below is my code for the RadRichTextBox. I use standard RadRichTextBoxRibbonUI.
Attached are 2 files:
(1) Scanned Envelope.jpg - I printed the envelope and then scanned it. The text gets cut off.
(2) PrintedToPdf.jpg - I printed to PDF Writer instead to printer. Notice that the pages size seems to be incorrect.
My guess, that page size is not being set properly when printing. Any suggestions?
I am trying to use RadRichTextBox to print envelopes. I have defined the proper page size and it looks good on the screen. However, when I print, the text starts at the middle of the page and gets cut off. Below is my code for the RadRichTextBox. I use standard RadRichTextBoxRibbonUI.
Attached are 2 files:
(1) Scanned Envelope.jpg - I printed the envelope and then scanned it. The text gets cut off.
(2) PrintedToPdf.jpg - I printed to PDF Writer instead to printer. Notice that the pages size seems to be incorrect.
My guess, that page size is not being set properly when printing. Any suggestions?
<
telerik:DocumentRuler
Grid.Row
=
"1"
>
<
telerik:RadRichTextBox
x:Name
=
"radRichTextBox"
LayoutMode
=
"Paged"
>
<
telerik:RadDocument
>
<
telerik:Section
PageOrientation
=
"Landscape"
PageMargin
=
"25,25,25,25"
PageSize
=
"408, 912"
>
<
telerik:Paragraph
SpacingAfter
=
"0"
>
<
telerik:Span
Text
=
"Company Name"
/>
</
telerik:Paragraph
>
<
telerik:Paragraph
SpacingAfter
=
"0"
>
<
telerik:Span
Text
=
"City, Province, Postal Code"
/>
</
telerik:Paragraph
>
<
telerik:Paragraph
>
<
telerik:Span
Text
=
"Country"
/>
</
telerik:Paragraph
>
<
telerik:Paragraph
/>
<
telerik:Paragraph
/>
<
telerik:Paragraph
TextAlignment
=
"Center"
SpacingAfter
=
"0"
>
<
telerik:Span
Text
=
"Company Name"
/>
</
telerik:Paragraph
>
<
telerik:Paragraph
TextAlignment
=
"Center"
SpacingAfter
=
"0"
>
<
telerik:Span
Text
=
"City, Province, Postal Code"
/>
</
telerik:Paragraph
>
<
telerik:Paragraph
TextAlignment
=
"Center"
SpacingAfter
=
"0"
>
<
telerik:Span
Text
=
"Country"
/>
</
telerik:Paragraph
>
</
telerik:Section
>
</
telerik:RadDocument
>
</
telerik:RadRichTextBox
>
</
telerik:DocumentRuler
>