Telerik Forums
Reporting Forum
1 answer
120 views
Hi,

I am using the following code to print my report and it works fine on Google Chrome and Fireforx but the problem occurs when I use Internet Explorer (IE) and try to print my report. What happen is that the blank page shows and nothing happens. 

I think the reason it could be that IE can not render that report in pdf format ... ?



protected void Page_Load(object sender, EventArgs e)
    {
        Hashtable deviceInfo = new Hashtable();
        deviceInfo["JavaScript"] = "this.print({bUI: false, bSilent: true, bShrinkToFit: true});";
  
        ReportProcessor reportProcessor = new ReportProcessor();
        RenderingResult result = reportProcessor.RenderReport("PDF", new BarcodesReport(), deviceInfo);
  
        string fileName = result.DocumentName + ".pdf";
  
        Response.Clear();
        Response.ContentType = result.MimeType;
        Response.Cache.SetCacheability(HttpCacheability.Private);
        Response.Expires = -1;
        Response.Buffer = true;
        Response.BinaryWrite(result.DocumentBytes);
        Response.End();
  
    }

Steve
Telerik team
 answered on 09 Aug 2011
2 answers
170 views
I have a border on my ReportViewer.  When I have a report that fills up an entire page (or multiple pages), a portion of the report will display below the ReportViewer's border.  The amount (height) displayed below the border is equivalent to the height of the report toolbar + the params section.  (i.e. If I hide the params, the overlap height is equivalent to the height of the toolbar.

Have you seen this before? Do you know what would cause it?  I'm using IE9, DOCTYPE = xhtml 1.0 strict,

I have attached a screenshot of the overlap.
<div style="float:left;width:850px;">
  <div style="height:792px;">
    <telerik:ReportViewer ID="ReportViewer1" runat="server" style="border:1px solid #ccc;"
         width="99%" height="792px" ReportBookID="ReportBookControl1" Skin="Office2007">
         <resources reportparameterspreviewbuttontext="View Report" />
    </telerik:ReportViewer>
  </div>
</div>

Thanks,
Justin
Justin Lee
Top achievements
Rank 1
 answered on 08 Aug 2011
5 answers
190 views
Hi,

I have designed a multicolumn report which has 3 columns. I copied your example and simply changed the datasource and fields in it. I have not changed anything else (including margin, column spacing, page width, etc.)

Now, when I preview the report during design time (going to Preview tab), it does displays data in 3 columns. Great!

However, when I see the report during run time, it displays only single column. Please suggest!

Regards,
Krunal
Steve
Telerik team
 answered on 08 Aug 2011
1 answer
188 views
Hi everyone,

i just tried to save the content from the new WinForm RichTextBox as HTML and read it into a Telerik Reporting HtmlTextBox. Okay, this failed because of the HtmlTextBox Command limitation... ;)

Is there any known way to show the formated content (colors, font weight etc.) of the RichTextBox in the Report? This would be a really great feature! If there is no existing possibility, would it be possible to create a RichtTextBox FormatProvider which saves the content of the box in a way the reporting HtmlTextBox understands?

Best Regards,
Michael
Stefan
Telerik team
 answered on 08 Aug 2011
1 answer
325 views

Hi,

For crystal report, we have a function call .Load(...) to load report by specific path,
eg:

 

CrystalDecisions.CrystalReports.Engine.ReportDocument oRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

 

 

 

oRpt.Load(D:\Project Source Code\MCS2011\CRReason.rpt);

Is that any similar function like .Load(...) method for telerik reporting?

 


Steve
Telerik team
 answered on 08 Aug 2011
1 answer
104 views
I've seen requests for a Silverlight Report Designer spread across this site, and going back several years.  I can understand the complexity of such a request, so I'm not going to ask for that.

What I would like, is the ability to capture as an event on the Silverlight Report Viewer, when a user 'clicks' on an element in a report that has an action associated with it. I feel this would be a relatively simple improvement, that would then enable me to implement my own UI to support setting properties on the selected report item.

Currently there are (I think) three implementations of IAction, being NavigateToUrlAction, NavigateToReportAction and NavigateToBookmarkAction. If it was possible to implement another, such as 'UserAction', that is raised as an event on the ReportViewer containing the report (and contains a reference to the report item that the user 'clicked'), then as developers we could capture that and implement our own logic.

Does this make sense?

Regards,

Stuart
Steve
Telerik team
 answered on 08 Aug 2011
1 answer
119 views
We're using the Telerik Reporting in a Silverlight application, and are getting a XML error when trying to run a report that has 2 columns, page breaks and is in a book and chapter format.  The error does not occur when not using page breaks.  The XML error is:

"Token EndDocument in state Document would result in an invalid XML document"

I'm not sure if this has ever been tested, but again, the error only occurs if page breaks are being used in this scenario.  If there are no page breaks being used, the error does not occur.  Is there a fix for this or a known issue?  Thanks.
Steve
Telerik team
 answered on 08 Aug 2011
2 answers
588 views
Hi,

I was wondering if it was possible to merge all the cell of a row, so this row will have only one cell that will take all the length of the crosstable. I'm not sure if I explain it cleary, so I attached a picture to this post. In this picture, you can see that I have a crosstable group by the sex of a person (so, two groups) and the first group show the actual looks of my report and the second group what it should look like. Is anybody know how to do this ?

Thank you
David
David
Top achievements
Rank 1
 answered on 05 Aug 2011
4 answers
369 views
I just downloaded the latest version of the Reporting tools and noticed that it did not install a Telerik.Reporting.XamlRendering.dll this time.  In the instructions for deploying a WPF application, it still says to include this dll but I don't have it in the reporting dlls or the WPF controls dlls.  Just want to verify that I didn't get something installed incorrectly before I get too far.

thanks!
Sergey
Top achievements
Rank 1
 answered on 05 Aug 2011
3 answers
166 views
After upgrading to q2 release (for Silverlight)  i can't get ReportViewerModel from ReportViewer.

I tried to use 

var reportViewerModel = reportViewer.DataContext as ReportViewerModel;


but datacontext for this control i always null,

then I tried 

var layoutRoot = (FrameworkElement)VisualTreeHelper.GetChild(this.reportViewer, 0);
var rvm = (ReportViewerModel)(layoutRoot.DataContext);


this gives me an error :

Specified argument was out of the range of valid values.
Parameter name: childIndex


I found that before i could use ReportViewerModel constructor. After upgrade i cannot.

I'm trying to use PrintDocumentCommand. Can i do that without ReportViewerModel?
Steve
Telerik team
 answered on 05 Aug 2011
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?