1. Document created via MS-Word, Page orientation is set to Landscape. (MS-Word works OK)
2. Document read into Telerik RichTextEditor and print ignore Landscape settings.
3. Documet "Landscape.rtf" and snapshot in attachmet
please help me
Thanks for answer. So I'll be waiting for new release of RichTextEditor control working correctly.
I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
Currently, the possible solution that I can suggest is to use the following custom ribbon UI and RadRichTextEditor:
public
class
CustomRichTextEditorRibbonBar : RichTextEditorRibbonBar
{
protected
override
void
BackstageButtonPrint_Click(
object
sender, EventArgs e)
{
this
.AssociatedRichTextEditor.Print(
true
);
}
}
public
class
CustomRichTextEditor : RadRichTextEditor
{
public
override
void
Print(
bool
showPrinterSettings)
{
RadPrintDocument document =
new
RadPrintDocument();
if
(
this
.Document.Sections.Count > 0)
{
document.Landscape =
this
.Document.Sections.First.PageOrientation == PageOrientation.Landscape;
}
Print(showPrinterSettings, document);
}
public
override
void
Print(
bool
showPrinterSettings, RadPrintDocument document)
{
if
(
this
.Document.Sections.Count > 0)
{
document.Landscape =
this
.Document.Sections.First.PageOrientation == PageOrientation.Landscape;
}
base
.Print(showPrinterSettings, document);
}
}
Should you have further questions please let me know.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Hello,
1. I'd like to show PrintDialog to give ability to choose printer
2. Information about paper orientation is in document (MS Office can manage this)
3. User select different document and I'dont like to keep information about paper orientation somewhere else outside and set it programmatically
4. ReachText control should detect paper orientation and set proper
printDoc.DefaultPageSettings
RadPrintDocument printDoc =
new
RadPrintDocument();
printDoc.AssociatedObject =
this
.radRichTextEditor1;
printDoc.DefaultPageSettings.Landscape =
true
;
printDoc.Print();
Hi, I do as you said. Behavior is the same.
I think that printer preferences should be set to proper value (Landscape) but they don't
I use function
PageOrientationorientation = this.radRichTextEditor1.Document.SectionDefaultPageOrientation;
and return value is "Portrait"