This is a migrated thread and some comments may be shown as answers.

Print() stops working if DocumentName parameter is string.Empty

1 Answer 34 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
GEB
Top achievements
Rank 1
GEB asked on 11 Jul 2010, 05:28 PM

The following will cause the Print and Print Preview to show a blank document:

 

this

 

 

.editor.Print(string.Empty, printMode);    // Fails

 

this.editor.Print("document", printMode);      // Works

 

1 Answer, 1 is accepted

Sort by
0
Alex
Telerik team
answered on 15 Jul 2010, 09:42 AM
Hello GEB,

Passing empty string as a DocumentName causes the print preview to generate HTML with a self-closing <title/> tag. Unfortunately, IE shows a blank document in this case (Firefox and Chrome will show the document even if there is a self-closing title tag).

We will fix this issue with the next Service Pack. For now, you can just avoid passing an empty string as a DocumentName.

Please, let us know if you have any other questions.

Best wishes,
Alex
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
GEB
Top achievements
Rank 1
Answers by
Alex
Telerik team
Share this question
or