Telerik Forums
Reporting Forum
1 answer
334 views
I'm really having a tough time getting the speed of my PDF exports down to something reasonable. The reports I'm generating are not really summary or aggregation reports, they're "everything" reports with a great deal of text. Report page counts can be tens, hundreds, or even thousands-- alas, the requirements are fixed. The export is so slow that I've had to run the ReportProcessor in a Windows Service to do it all asynchronously. Within the report designer's preview tab in Visual Studio the generation seems to take seconds instead of minutes or hours.

To anyone reading this, I'd appreciate some tips on formatting my reports to improve speed of export to PDF.
Squall
Top achievements
Rank 1
 answered on 28 Jun 2013
1 answer
121 views
this.Fields["DeliveryTermsID"].Value.Tostring()

does not work "Reports.TelSubRptContract does not contain a definition for 'Fields'

so what would work?  I am trying to pass values to a txtbox on the subreport from the datasource that it has been given.
Squall
Top achievements
Rank 1
 answered on 28 Jun 2013
2 answers
246 views
This is a weird one.  I have an ASP.Net page with the report viewer control.  The report is in a separate dll as per best practice recommendations.  When the page comes up, the report area is blank.  But, if I export the report to PDF, the report contents are there as expected.  What is going on with this? 

Clicking the Preview or refresh buttons does not help.

This is the code in the viewer page (the session variable does have a value and it comes in correctly:
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    'If Not IsPostBack Then
    Dim report1 As New PMP2Reports.DocumentsReviewed
    Dim objSession As Object
 
    objSession = Session("subIdx")
    If Not objSession Is Nothing Then
        report1.ReportParameters("subIdx").Value = objSession
    End If
 
 
    ReportViewer1.Report = report1
    ReportViewer1.RefreshReport()
    ' End If
 
End Sub


VS 2010, Reporting 2012 Q1

Thanks.
Jon_BCV
Top achievements
Rank 1
 answered on 27 Jun 2013
3 answers
122 views

Hi. This is probably an easy question for somebody to answer but it is driving a noobie like me nuts tonight. I have a report that has 3 parameters (date_start, date_end, worker). I set up the parameters as usual and assigned some default values to them.   I have some tables that use a sqldatasource to  display some data based on those parameters. This works fine. I have absolutley no isues with the tables displayign data using the parameters

What I am trying to do is use some code behind (presumably in itemdatabound event) to do a calculation and display some text in a textbox based on the number of days between start and end date parameters. I can get this calculated data to display. but it always displays values based on the default value of the parameters and not what is selected in the dropdowns for the parameters. if i clear the default values from the parameters, the report errors out because it thinks the default values for the dates are blank or null.
 
Does the itemdatabound event fire before the parameters are available to use and calculate against?

What should I be doing?
Peter
Telerik team
 answered on 27 Jun 2013
3 answers
212 views
I have an existing report that I am working with. The functional request I have is to suppress the automatic page break that occurs when the third group starts to render.

There are 4 groups that are built dynamically. Each group has a crosstab. The first two groups/crosstabs are fairly small and together they take up 25% of the page height. The third group takes up about 90% of the page height and as such defaults it's starting point as the top of the next page.

My client has asked that I suppress this functionality and force the group to start in line with the previous group and then break to another page in the event it will not fit. In some instances I have examples where it takes up 150% of the page space and in those cases it does start right after group#2 and spills onto the next page repeating the headers as expected. 

How can I force this behavior every time?
 
I have set the KeepTogether property to false in TableGroup and CrossTab objects but to no avail.

Are there other properties I need to set in order to insure the desired behavior occurs?
Stef
Telerik team
 answered on 27 Jun 2013
3 answers
167 views
Hi, I have the following problem with the Report Viewer for WPF control . I read the HTML code returned by 'Render' metod next i want to set this code to the reportviewewr control , How can I do it ??

This metdo that i use to get HTML code:

 Dictionary<string, object> lParameters = new Dictionary<string, object>();
 lParameters.Add("IDKON", 101);
var lResult = ReportServiceContext.I.Render("HTML", lRaporty[0].FullName, null, lParameters);

 if (lResult.Error == null)
{
       sring str = System.Text.Encoding.Default.GetString(lResult.DocumentBytes);
 }

Thank for help.

Gregor
Squall
Top achievements
Rank 1
 answered on 27 Jun 2013
8 answers
703 views
Hello,

We have an issue with one of our production systems, where we do not have a great deal of storage space on the primary drive of the server (Primary being C:\, where Windows lives). This causes issues, because we have functionality in place that can generate reports that are actually larger than we have disk space available. In an effort to fight this (without upgrading these servers), I was wondering if there was a way to tell Telerik Reporting use a different folder when it's creating the report? Alternatively, if we knew the size of the report, we could check to ensure that amount of space was available, but, I don't think we can determine the size of a file that hasn't yet been created, the best we could do would be a guestimate based off the amount of data.

Anyone else have an issue similar to this?

Any suggestions would be great!

Thanks,

Travis
Peter
Telerik team
 answered on 27 Jun 2013
3 answers
348 views
Hi,

I have put an HTMLTextBox on a report and inserted a hyperlink into it as follows:
 <a href="Visit'>http://www.w3schools.com/">Visit W3Schools</a>.

When I "Preview" the report the hyperlink works fine but when I switch to "Html Preview" the link just displays as blue underlined text and is not an active link. Also, the link doesn't work at all when I use the reportViewer control in a asp.net webforms web page.

I have tried this in VS2008 and VS2012 . I have also used .Net 3.5 and 4.0 . The Reporting version is Q1 2013 SP1

Is this an issue or am I just doing something wrong?

Thanks
Dan Rizzo
Stef
Telerik team
 answered on 27 Jun 2013
1 answer
162 views
I am running the following code:
and at this.TelSubRptLocations.Report = TelSubrpt; it throws the following error:
"Property or indexer Telerik.Reporting.ReportItemBase.Report cannot be assigned to -- it is read only.

so how do i get around this?
Telerik.Reporting.Report TelSubrpt = new TelSubRptContract();
((TelSubRptContract)TelSubrpt).UOM = "GAL";
((TelSubRptContract)TelSubrpt).RinsPrice = RinsPrice;
TelSubrpt.DataSource = dtLocations;
this.TelSubRptLocations.Report = TelSubrpt;
Squall
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
97 views
If =fields.ContractedQty > 0 I want my value to show
txtQty.Value = Convert.ToDouble(txtQty.Value).ToString("###,###,##0") + " Gal"
if =fields.ContractedQty = 0 I want my value to show

txtQty.Value = Convert.ToDouble(txtQty.Value).ToString("###,###,##0") + " Gal (Optional Delv. Location)"
How can this be done.  I have tried txtQty.DocumentMapText but it is empty so that does not work.
Squall
Top achievements
Rank 1
 answered on 27 Jun 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?