Sirjacksinurbox
asked on
I need ideas to print to paper in C#
My client would like a function in his program to click a button, have the program ask for the number of labels to print, and then send the command to the printer (or display the windows system print window).
First, I know how to set up buttons and ask the user for variables; that's not the problem. My problem is that I don't know the right questions to even ask Google when it comes to printing to a sheet of paper in c#.
I will try and break down the problem as best I can.
1) How do I format a page(in c#) for multiple columns and multiple rows before I send it to the printer? The paper will be standard 8.5 x 11 in size, and it will be printed from a standard printer. The type of paper is that Avery Label Paper where it has individual labels on each sheet. An example layout would be something like this:
2) How would I be able to use text from textbox's as items to place on the label when printing it?
3) How would I send that to the print window?
Any ideas, advice, and/or tutorials would be greatly appreciated.
Thank you.
First, I know how to set up buttons and ask the user for variables; that's not the problem. My problem is that I don't know the right questions to even ask Google when it comes to printing to a sheet of paper in c#.
I will try and break down the problem as best I can.
1) How do I format a page(in c#) for multiple columns and multiple rows before I send it to the printer? The paper will be standard 8.5 x 11 in size, and it will be printed from a standard printer. The type of paper is that Avery Label Paper where it has individual labels on each sheet. An example layout would be something like this:
2) How would I be able to use text from textbox's as items to place on the label when printing it?
3) How would I send that to the print window?
Any ideas, advice, and/or tutorials would be greatly appreciated.
Thank you.
You could benefit from Crystal Reports in Visual Studio, first create a typed dataset and from there design the report based on the fields that you want from your dataset's table. Once you have that setup, fill the dataset's table with the information you need, call the report and bind it's datasource to the dataset you just filled. I know that there are other ways but to me this is by far the easiest and the one i have used in the past for this purposes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That information was right on the money.
Within a couple of hours. I had everything exactly how I want it.
Thank you very much.
If you ever come across another user needing help with this, I found an excellent article that walked me right through an example of how to do this.
Pass it along if you want: Word File
Thanks again.
Within a couple of hours. I had everything exactly how I want it.
Thank you very much.
If you ever come across another user needing help with this, I found an excellent article that walked me right through an example of how to do this.
Pass it along if you want: Word File
Thanks again.