Telerik Forums
Reporting Forum
5 answers
218 views
We inherited old Telerik 2011 code and our Telerik reports are failing with Telerik 2014 Q1.  We have good reports generated from the earlier version. The SurveyID does have a valid integer but the Datasource is failing.  The following has Bolded text being the failing code:

' Instantialte the report object and assign data sources to report and subreports
Dim Report1 As New Reporting.MstrRpt_LESD_Preview()
Dim SurveyID As New Int32
SurveyID = CInt(Session("LESD_SurveyID"))
Report1.DataSource = LESD.ConfigurePreviewReport(SurveyID)

CType(Report1.Items("detail").Items("SubReport1"), Telerik.Reporting.SubReport).Report.DataSource = LESD.ConfigurePreviewSubReportBase(SurveyID)
CType(Report1.Items("detail").Items("SubReport1"), Telerik.Reporting.SubReport).Parameters.Add("LESD_STE_CHECKED", chkIncludeSteInfo.Checked)
CType(Report1.Items("detail").Items("SubReport1"), Telerik.Reporting.SubReport).Parameters.Add("LESD_STE_NAME", rtbSteName.Text.Trim)
CType(Report1.Items("detail").Items("SubReport1"), Telerik.Reporting.SubReport).Parameters.Add("LESD_STE_PHONE", rtbStePhone.Text.Trim)
CType(Report1.Items("detail").Items("SubReport1"), Telerik.Reporting.SubReport).Parameters.Add("LESD_STE_EMAIL", rtbSteEmail.Text.Trim)
CType(Report1.Items("detail").Items("SubReport1"), Telerik.Reporting.SubReport).Parameters.Add("LESD_STE_COMPCODE", rtbSteCompCode.Text.Trim)
CType(Report1.Items("detail").Items("SubReport2"), Telerik.Reporting.SubReport).Report.DataSource = LESD.ConfigurePreviewSubReportNonBase(SurveyID)

Reporting_Utilities.ReportToPDF(HttpContext.Current, Report1)

End Sub

The excepton says:

System.NullReferenceException was unhandled by user code.
Additional information: Object reference not set to an instance of an object.

The SurveyID is an integer.  It should select a report based on which integer was selected.

Any ideas as to why it is failing?
Ron
Top achievements
Rank 1
 answered on 06 Jun 2014
1 answer
64 views
Hello, I have a problem.

In computer of developers, the report is ok, but in other computer, it is not ok. why? 

Help me, please.

THANKS
Ivan Hristov
Telerik team
 answered on 06 Jun 2014
2 answers
109 views
Telerik.ReportViewer.Silverlight 8.0.14.507

System.Windows.Data Error: BindingExpression path error: 'ExportToolTip' property not found on 'Telerik.ReportViewer.Silverlight.ReportViewerModel' 'Telerik.ReportViewer.Silverlight.ReportViewerModel' (HashCode=3057817). BindingExpression: Path='ExportToolTip' DataItem='Telerik.ReportViewer.Silverlight.ReportViewerModel' (HashCode=3057817); target element is 'System.Windows.Controls.ToolTip' (Name=''); target property is 'Content' (type 'System.Object')..

And my Telerik.ReportViewer.Silverlight.TextResources.pl-PL.resx doesn't work. How can I roll over my localization?
ADM-IT Denis Pujdak
Top achievements
Rank 1
 answered on 06 Jun 2014
1 answer
171 views
I am utilizing the HTML5 Viewer with ASP .Net MVC.  I have a page with a table of records.  Each record has a link to a corresponding report for that row.  It opens this report in a new window.  No problems there.  The problem occurs when I click on another row or on a hyperlink within the open report that links to another report.  Either method attempts to open the new report in the same window.  The URL will change and the screen will appear to try to reload; however, the same report is displayed.  

This same scenario happens in Firefox, Chrome, and IE.

If I copy the new URL from the address bar of the browser and paste in a new tab or window, it opens the expected document.

Any idea why I cannot load a new report in the same window as the existing report?

Thanks,
Scott


Nasko
Telerik team
 answered on 05 Jun 2014
1 answer
129 views
Using the Report Designer the minimum Base Unit for DateTime Scale is Minute.

Is there any way to set as Seconds as Base Unit for 
DateTime Scale Coordinate System programmatically ?

Michele
Ivan Hristov
Telerik team
 answered on 05 Jun 2014
2 answers
227 views
Hi 

I currently have a web application that shows a telerik report.
The report works fine

I needed the reports to be mailed daily at a certain time to relevant people so i created a mailer in a console app that runs at a certain time.

The code i used is below

Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor()
            Dim oreport As New cReportLibrary.report
            oreport.ReportParameters.Item("par1").Value = "111"
            Dim Result As RenderingResult = reportProcessor.RenderReport("PDF", oreport, Nothing)
            Dim ms As New MemoryStream(Result.DocumentBytes)
            ms.position = 0


The email sends perfectly fine problem i am having is when i open up the PDF in the email  i get the following error
An error has occurred while processing Report 'CustProfile':

Unable to establish a connection to the database. Please, verify that your connection string is valid. In case you use a named connection string from present in the configuration file of your application.
------------- InnerException -------------
Format of the initialization string does not conform to specification starting at index 0.

How could i add the datasource in my console app that telerik will be able to refrence and send the report without an error
Ismail
Top achievements
Rank 1
 answered on 05 Jun 2014
0 answers
117 views
As seen in screenshots attached, the SP is returning data as expected when the ExecuteQuery is clicked:

Unfortunately, once you're returned to the Choose Data Source page of the ReportWizard, only one of the twenty fields shows up:

And similarly on the next page (), only that one field shows up:

What is the issue here?  I've done this MANY times and it isn't working.  It worked fine a few days ago, so I don't know what has changed.  Because of this issue, I'm unable to design my report.

This is a cross-post (originally posted in Reports forum, seems like this may be the more appropriate place for this - please advise).


Thanks,

Jared
Jared
Top achievements
Rank 2
 asked on 04 Jun 2014
1 answer
66 views
As seen in screenshot below, the SP is returning data as expected when the ExecuteQuery is clicked:

Unfortunately, once you're returned to the Choose Data Source page of the ReportWizard, only one of the twenty fields shows up:

And similarly on the next page (), only that one field shows up:

What is the issue here?  I've done this MANY times and it isn't working.  It worked fine a few days ago, so I don't know what has changed.  Because of this issue, I'm unable to design my report.


Thanks,

Jared







Jared
Top achievements
Rank 2
 answered on 04 Jun 2014
5 answers
74 views
Hi,
is it planned to support Windows 8 Xaml and .Net Development for the Reporting tools?

Kind regards
Benjamin
Stef
Telerik team
 answered on 04 Jun 2014
7 answers
268 views
Hello,

When i create a new report. In The wizard you can choose 2 types/

Standard to create a general type of report or
Label if you would like to create a special purpose report such as one for printing labels for mailing envelopes.

I selected the second. (14 labels on the A4-page)

I have this object with properties mostly text

Know one property is a number of labels that is needed to printed

What is the best way to generarte for example 100 labels with the same text ?

thanks
Stef
Telerik team
 answered on 04 Jun 2014
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?