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
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