Telerik Forums
Reporting Forum
1 answer
158 views

We're using the ReportViewer control with the Standalone report designer in a VB.net website.

The designer's .trdx files are uploaded to the server, which are then serialised to XML and stored for later use. When the reports are run, we convert the report to a Telerik.Reporting.InstanceReportSource
like this (just the relevant code here, the objects also load parameters into the report object but the issues occur even when there are no parameters present in the report):

Private _ReportObject As Telerik.Reporting.Report
Private _oInstanceReportSource As Telerik.Reporting.InstanceReportSource

 

ReportObject = DirectCast(New Telerik.Reporting.XmlSerialization.ReportXmlSerializer().Deserialize(New System.IO.StringReader(_ReportXML)), Telerik.Reporting.Report)

 

_oInstanceReportSource.ReportDocument = ReportObject

 

 

We change the connection string to point to the local database and run the reports from there using code from the forum here, and bind the report to the control using the instanceReportSource

rptView.ReportSource = _oInstanceReportSource
rptView.DataBind()

We've made sure to only use the reporting engine data sources (sqldatasource) and we're able to change all the connection strings from whatever they were set up with in the report using code we pulled from the forums here.

So far, so good.

We have intermittent errors:

Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode

However, it's not consistent. Refreshing the page a few times (sometimes once, sometimes 12 or so refreshes) will eventually lead to the report working correctly.

It's a big production environment where we're using StateServer mode and using inProc session state isn't possible. It happens on our dev machines when we're using local IIS as well as our test server.

Stef
Telerik team
 answered on 15 Apr 2015
1 answer
613 views

Hi,

 Is there any way to use Byte array (which I convert from PDF) as an instanceReportSource? 

 Here is my scenario, I need to generate TWO report, say Report A and Report B. Report A is a subset of report B. Report A is generated first (at the beginning of the business cycle), then saved as byte array (in the database). then at the end of the business cycle, I need to generate Report B, which half top of it is exactly a copy of Report A. How can i achieve this using the byte array off Report A i already have?

 

Thanks & Regards,

Rafa

Stef
Telerik team
 answered on 15 Apr 2015
1 answer
103 views

 

I made this (attached) using 3 htmlblocks. However in the future I need it to come from the database.

Is there anyway html or rich-formatted-text could come from a single column in a dataset and spread across 3 columns?

In my other reports I have html from the DB displayed, but I do not have it in 3 columns.

 

 

Stef
Telerik team
 answered on 14 Apr 2015
4 answers
902 views
Hello

A user asked us if it's possible to "change the font size for printing".
I guess this isn't really possible, since the text boxes are fixed sizes and positions and if the text would get bigger it just would be cut...?
So my question: Is it possible to choose the scaling of a report? E. g. if I've designed an A4-report, choose a scaling of 200% and get 4 printed A4 pages?

Thx

P.S. @Steff: There are some open answers from you to threads by me. I'll come back to them by time...
Fridli Jacober
Top achievements
Rank 1
 answered on 13 Apr 2015
8 answers
242 views
Hello,

I added two Buttons to the default Silverlight ReportViewer Style.

Now I like to bind these two Buttons to a command.
For this I made a class which inherited from ReportViewerModel.
Unfortunatly this will not work. The ReportViewerModel as no contstructor.
Error Message: Telerik.ReportViewer.Silverlight.ReportViewerModel Type has no constructors defined'

My question:
How can I bind Commands to the two new Buttons in the Style?

Thank you,
Manuel
zsy zsy
Top achievements
Rank 1
 answered on 13 Apr 2015
3 answers
169 views

I have a report with a parameter set at the datasource level to pull the Top N results from the database.

I would like to be able to display the current value of the Top N datasource parameter in a text box in the body of my report.

Is there a way to do this simply?

i.e.

Datasource Parameter: @topCount

Text Box: Top {@topCount} Records by Total

Sadie
Top achievements
Rank 2
 answered on 10 Apr 2015
3 answers
683 views
I have a custom report resolver that implements IReportResolver.Resolve(string). The execution of this method does quite a few things that can go wrong in my setup. I catch and log the exceptions but throwing it will always cause the reporting service to hide the actual exception and will replace it with a generic "Unable to get report parameters: Report 'reportId' cannot be resolved."

How can I display the actual exception to the user (I'm using the html5 report viewer)?
Stef
Telerik team
 answered on 10 Apr 2015
4 answers
764 views
I have a graph that has a sql data source defined, but I want to be able to hide the graph if there is no data being returned from the data source.  I tried to bind the Visible property, but the Fields list is empty even though I have the data source defined and it is working fine when there is data.  I thought I would be able to do Visible = Count(Fields.PatName) > 0 since PatName is a field being returned by the SQL data source.
Stef
Telerik team
 answered on 10 Apr 2015
3 answers
389 views
I would like to know if you guys plan to provide localization support for the Report Designer, by this i mean allowing the UI to be in a different language other than english.

Cheers
Stef
Telerik team
 answered on 10 Apr 2015
3 answers
252 views
I am trying to find a way of adding interactive sorting to my reports that are developed in the TRDX standalone format.
I have searched various threads and I see how it can be done using the c# approach in visual studio, but when I try to repeat that in the standalone designer i.e. by creating a parameter and passing this into the sort field of the table it does not work.
Any suggestions.
This to me is a key area for improvement to make it simpler.
Stef
Telerik team
 answered on 10 Apr 2015
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?