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

Error in Reports as HTML

0 Answers 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 04 Aug 2011, 12:41 AM
In my telerik report (which was originally designed to display as PDF), I have added the renderformat as HTML if a property is set to true. In the Render method inside the designer class, I check whether the property is true. If true, I make the Page footer section visibility as false before invoking -

 

 

processor.RenderReport(reporter.RenderFormat,this, null).DocumentBytes;

 

(reporter.RenderFormat will be either PDF or HTML. This is also set based on the above said property)
So when I view it as HTML (I convert the byte array as given below:
System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding(); 
lblRecordContent.Text = enc.GetString(value);

 

 ),
I have two problems.

1. Page footer section is still shown which is not required in case of HTML view.

 


2. I get a javascript error
   
<script type="text/javascript">
var PageInfo = [%PageNumber%, %PageCount%];
var BookmarksOnPage = new Array(%BookmarksOnPage%);
</script>

Kindly help me on these issues.

Thanks

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
George
Top achievements
Rank 1
Share this question
or