.NET Dynamic PDF generation from template Why need Northwind Connection
String for DocumentLayout .Run()
I am using .dynamic pdf 6 version. while i am running sample example its
working fine because of having NorthwindConnectionString.
DocumentLayout report = new
DocumentLayout(System.IO.Path.Combine(Examples.GetDPLXPath(),
"Test1.dplx"));
return report.Run();
when run this code asking
class Test
{
[STAThread]
static void Main(string[] args)
{
Document document;
document = TestReport();
document.Draw(@"DynamicPDF.ReportWriter.Example.pdf");
System.Diagnostics.Process.Start(@"DynamicPDF.ReportWriter.Example.pdf");
}
public static Document TestReport()
{
DocumentLayout report = new
DocumentLayout(System.IO.Path.Combine(Examples.GetDPLXPath(),
"Test1.dplx"));
return report.Run();
}
}
No comments:
Post a Comment