VB.NET - generate reports
-
What is the best practice for generating a standard report in a VB.NET app? I have tabbed form a user fills out then clicks file, print to print the record just created. Printing the data entry screen is not an option. For instance you fill out a customer order then you want to print the order. Do you create another windows form or is there a special type of form for printing? I know this is a newbie question but I am just looking for some general guidance not a step by step walk through. Thanks, Sean
-
What is the best practice for generating a standard report in a VB.NET app? I have tabbed form a user fills out then clicks file, print to print the record just created. Printing the data entry screen is not an option. For instance you fill out a customer order then you want to print the order. Do you create another windows form or is there a special type of form for printing? I know this is a newbie question but I am just looking for some general guidance not a step by step walk through. Thanks, Sean
Hi Sean. You could use a dedicated report control, like Crystal Reports for this. You could also investigate the
PrintDocument
class - to print a customer order, you could either sub-class PrintDocument or add your own event handler to respond to the PrintDocument'sPrintPage
event. The .NET SDK documentation has some examples.