问题
I have a .NET WinForms containing a few user controls. these controls usually contain either a RichTextBox or similar text controls (also 3rd party grid, XtraGrid suite, but those have the feature i want). I want to export the form the same way it looks to a PDF document.
I've seen several libraries and general PDF creation features but im completely confused as to what i need exactly.
If anyone has any suggestions how to do the scenario I'm talking about, I'd appreciate the help and personal experience with PDF.
回答1:
I don't know if this is an option for you, but one simple possibility would be to use the PrintForm component in combination with one of the many programs that allow you to print to a pdf document instead of a printer.
Example apps that let you print to PDF include the full blown Adobe suite, CutePDF Writer (free)
来源:https://stackoverflow.com/questions/1674060/export-a-net-winforms-form-to-pdf