i get an error saying "The ConnectionString property has not been initialized." when i did this small code as given below..
i have put 2 record box in dplx file with parameter names as
firstName and accNo.
can u pls tell me wat is the mistake tat i am doing here..
namespace dynamicPDFtest
{
class Program
{
static void Main(string[] args)
{
Document document = new Document();
ParameterDictionary parameters = new ParameterDictionary();
parameters.Add("firstName", "rakesh");
parameters.Add("accNo", "1234");
DocumentLayout layout = new DocumentLayout(@"C:\Users\Rakesh\test doc.dplx");
document = layout.Run(parameters);
document.Draw(@"d:/test.pdf");
System.Diagnostics.Process.Start(@"d:/test.pdf");
}
}
}
thanking you,
rakesh kashyap
error : The ConnectionString property has not been initialized
Re: error : The ConnectionString property has not been initialized
Support · Aug 31, 2010Hello Rakesh,
The error you are getting shows that you have not given any connection string to the DPLX file. You will have to give the connection string in the Query editor. You can refer to the Simple Report Example
topic on our help documentation which shows creating a simple report.
Thanks,
ceTe Software Support Team.
Re: error : The ConnectionString property has not been initialized
Forum member · Aug 31, 2010can i use MYsql Database with dynamic pdf?
Re: error : The ConnectionString property has not been initialized
Support · Aug 31, 2010Hello,
Using the latest build of our product you can use the collection of objects as a data source. So you can get the data from MySql server and that data you can give to the report as a collection. You can refer to the Using a List of Objects as a RecordSet
topic on our help documentation.
You can also try using the Event driven queries. You can change the query and connection string in this event and get the data from the database. You can assign this data to the report's record set. You can refer to the Event Driven Queries
on our help documentation.
Please feel free to try the latest build downloading it from our website
.
Thanks,
ceTe Software Support Team.