need some help with printing in VB.net
-
Hi :-D I am tryning to make aHi I’m trying to make a program that prints out some text on a special location on a paper. I’m using a Windows form, with some textboxes with a sender and resiver address. Some combo boxes to determine a transport method, I made some text appear in a text box, when I check the combo box. Example: I check the box whose label is Taxi, and the word Taxi appears in a text box. Then I made some buttons for the command printing, and for the command Exit (made a menu strip too, with the same functions). My question then is how I can print this out. I want to have the senders address on one location, and the resiver address on another location on the printed paper And so on.... I’m using VB in visual studio 2005, and I’m going to print this out on a Oki Microline 520. Ole Kr A new beginner in VB.net
-
Hi :-D I am tryning to make aHi I’m trying to make a program that prints out some text on a special location on a paper. I’m using a Windows form, with some textboxes with a sender and resiver address. Some combo boxes to determine a transport method, I made some text appear in a text box, when I check the combo box. Example: I check the box whose label is Taxi, and the word Taxi appears in a text box. Then I made some buttons for the command printing, and for the command Exit (made a menu strip too, with the same functions). My question then is how I can print this out. I want to have the senders address on one location, and the resiver address on another location on the printed paper And so on.... I’m using VB in visual studio 2005, and I’m going to print this out on a Oki Microline 520. Ole Kr A new beginner in VB.net
There are many ways to do what you ask... Are you using a database to store information? If so, it may have reporting features that you could use quite easily. Would you consider Office automation, e.g. Word, Excel? If so, you could simply create a Word template or Excel template and insert the data and print it from your code. This would require an installation of one of the above MS Office applications. You could use Crystal Reports (if you have it). Otherwise, you will need to work with Printer/Document objects, which could be quite difficult for someone new to VB. Steve