Print document

F

Frank Uray

Hi all

I have some problems with printing in C#.

I just want to have something like a report with
one TextBox on top and a PictureBox below.
While runtime, I need to fill the TextBox and the PictureBox,
and than just print it ...

I think this should be a very very simple thing,
but I dont know what to use ?? Crystal reports, MS Reports ??
And the main question is: How can I use it ??
How to fill objects in the report while runtime ??

Thanks for any comments
Best regards
Frank
 
A

Alberto Poblacion

Frank Uray said:
I just want to have something like a report with
one TextBox on top and a PictureBox below.
While runtime, I need to fill the TextBox and the PictureBox,
and than just print it ...

I think this should be a very very simple thing,
but I dont know what to use ?? Crystal reports, MS Reports ??
And the main question is: How can I use it ??
How to fill objects in the report while runtime ??

For such a simple print job, I would use the PrintDocument object.
During the Print event, a simple DrawString call can print the text, and a
DrawImage can print the picture; you specify the x,y coordinates in each
call. This is IMHO simpler than using Crystal Reports or MS Reports, and it
is certainly simpler to deploy, since you don't need to distribute the
additional libraries required by these tools.
 
C

Ciaran O''Donnell

I have a control printer for things like this which will get you an image for
a control (including its child controls) or will print it from a printer. You
are welcome to use it to print the panel/form that has the textbox and
picture box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top