inheriting DplxWebForm

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v6)  /  inheriting DplxWebForm

DynamicPDF CoreSuite for .NET (v6) Forum

 Jun 28 2011 10:11 AM
We're just now looking into integrating ReportWriter into an existing asp.net/VS2010/ASP.NET 4 website we have developed.  One question that immediately jumps out to me is that I see that a report page must inherit from DplxWebForm... but our website pages all inherit from a custom class that includes quite a bit of custom business logic and code (that in turn inherits from Page).

How do you recommend dealing with this situation (as I'm sure it's fairly common!).

Thx in advance
 Jun 28 2011 10:36 AM
Posted by a ceTe Software moderator
Hello,

Yes, the sample examples are having code which includes inheriting the DplxWebForm. You can build report layout template(DPLX file) having file extension .dplx and put it in your system and then you can access this using file path. The DocumentLayout class constructor takes file path for the DPLX file and you can use this to create object and then create PDF report. Please refer the documentation on associating DPLX at: http://www.DynamicPDF.com/Support/NET_Help_Library_11_01/Associating%20the%20DPLX%20File.html .

Thanks,
ceTe Software Support Team.

 Jun 28 2011 11:06 AM
Thank you for such a quick response.  I guess I didn't notice that info since it's under a help topic node labeled "Using DPLX Files (Non-Web)".

So, it does work w/in a web/asp.net situation then?  So, then the rest of the Non-Web would also apply too?  Just a tad confusing :)

So some pseudo-code that might work in one of my aspx pages:

 reportdoc = new DocumentLayout(SomePathToDPLXFile);
 doc = reportdoc.Run();
 doc.DrawToWeb(SomeFileName):

?



 Jun 28 2011 1:12 PM
Posted by a ceTe Software moderator
Hello,

Yes, the pseudo-code which you have posted is correct one and this should work for you. Please make sure that you are using the correct connection string and the field values for the report elements in the DPLX file.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 12:15 PM.