Q: We are planning to develop a winform report module in our system.
the format of output report file is PDF
Any elements(label, table, graphic ,… ) on the report designer form
can be moved (drap and drop) easily by the mouse, something like we
design the standard winform in Microsoft Visual Studio.
After the page design work in report designer form, the report
files(we just need PDF format) can be generated by your PDF SDK
Specifically I need a sample showing how to generate PDF reports using
PDFNet and how to place / view generated in our PDF Report Designer.
A: You can use PDFNet SDK (http://www.pdftron.com/pdfnet/) to
generate, view and edit PDF documents (among other things). As a
starting point you may want to take a look at the following sample
For PDF viewing:
You could also embed PDFViewctrl withing another control, so you could
place PDF pages on another control and move it around.
You could use PDFDraw class to convert PDF pages to
System.Drawing.Bitamps (as shown in PDFDraw sample:
When it comes to PDF generation, there are multiple ways to generate
content using PDFNet.
As a starting point you may want to take a look at the following
Xaml2PDF (e.g. convert Xampl,.NET Flow document, canvas, or fixed
document to PDF):
ElementBuilder (Low-level PDF generation):
PDFDC (Generate PDF through a Device Context – DC or .NET ‘Graphics’
Convert (Convert documents from XPS, MS Office, and other formats to