jvoros1
asked on
C# Printing many textboxes
Hello Expert I was wondering if you could show me how i can format the information I have to a certain layout I want it to print to the printer this is what i want it too look like
Company Number: 979734 Company Name: Willson Year:2004
ContactName: Mike Smith
this is what my code looks like
printDialog1.Document = ThePrintDocument;
string strText = "Company Number: " + this.lblProjectNo.Text
+ "Company Name" + this.txtProjectName.Text
+ " Year " + this.txtYear.Text
+ " ContactName " + this.cmbName.Text;
But this does prints all in one line and I don't want it too can you help please.
Company Number: 979734 Company Name: Willson Year:2004
ContactName: Mike Smith
this is what my code looks like
printDialog1.Document = ThePrintDocument;
string strText = "Company Number: " + this.lblProjectNo.Text
+ "Company Name" + this.txtProjectName.Text
+ " Year " + this.txtYear.Text
+ " ContactName " + this.cmbName.Text;
But this does prints all in one line and I don't want it too can you help please.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
just one thing for allignment is there such thing as \t for like tab?
yes that is right.
ASKER