I've programmed in vb 5 & 6 for years, but am new to vb.net. I'm currently working on a contract that I have to finish by the beginning of next week. Everything went smoothly until it came time to send a report to the printer.
I know how to use crystal reports, but it did not come with my trial version for some reason, so that is not an option. I must print reports manually.
In vb6, it was easy...
printer.print "Name:"; tab(10); employee.name
in vb.net they want me to specify all this junk: the actual string, all font information, the color, and the exact coordinates on the page to put the line of text. They want me to do this ON EVERY LINE???? For instance:
e.Graphics.DrawString("Friends For Learning Course Enrollment Roster", New Font("Arial", 10, FontStyle.Regular), Brushes.Black, 100, 100)
PLEASE tell me there is an easier way to do this!!! This will take me DAYS to write code just to send reports to the printer if I have to do it this way.
Also, how am I supposed to know the coordinates for every line of text???? I want to print one line, then go to the next line, and so on. I don't know how many twips from the top of the page that the 14th line of text is!!!
PLEASE HELP!!! IS THERE ANY STRAIGHTFORWARD WAY TO PRINT TEXT DOCUMENTS IN VB.NET????
(I could write text to a file, then print the file, but that seems like a hack job way of doing things to me. There has to be a better way to print text.)
PLEASE HELP! Thank You!!!
I know how to use crystal reports, but it did not come with my trial version for some reason, so that is not an option. I must print reports manually.
In vb6, it was easy...
printer.print "Name:"; tab(10); employee.name
in vb.net they want me to specify all this junk: the actual string, all font information, the color, and the exact coordinates on the page to put the line of text. They want me to do this ON EVERY LINE???? For instance:
e.Graphics.DrawString("Friends For Learning Course Enrollment Roster", New Font("Arial", 10, FontStyle.Regular), Brushes.Black, 100, 100)
PLEASE tell me there is an easier way to do this!!! This will take me DAYS to write code just to send reports to the printer if I have to do it this way.
Also, how am I supposed to know the coordinates for every line of text???? I want to print one line, then go to the next line, and so on. I don't know how many twips from the top of the page that the 14th line of text is!!!
PLEASE HELP!!! IS THERE ANY STRAIGHTFORWARD WAY TO PRINT TEXT DOCUMENTS IN VB.NET????
(I could write text to a file, then print the file, but that seems like a hack job way of doing things to me. There has to be a better way to print text.)
PLEASE HELP! Thank You!!!