473,378 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Print document

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
Sep 4 '08 #1
2 2341
"Frank Uray" <Fr*******@discussions.microsoft.comwrote in message
news:2A**********************************@microsof t.com...
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.

Sep 4 '08 #2
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.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alberto Poblacion" wrote:
"Frank Uray" <Fr*******@discussions.microsoft.comwrote in message
news:2A**********************************@microsof t.com...
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.

Sep 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dan | last post by:
This works in mozilla but I can't figure out why this won't work in IE. Say I have this html <html> header goes here header goes here
4
by: Julie Siebel | last post by:
Apologies...I'm sure this has been asked before, but I can't seem to come up with the correct Google search terms. While my problem is with stylesheets, the errors are being caused by my...
3
by: Craig | last post by:
First of all, this one is driving me crazy, so thanks in advance for any help!! I've got a javascript function in a parent document that generates an HTML document on the fly when a button is...
21
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want...
2
by: Asad | last post by:
I have a main window that creates a new window called printWin (which contains the printable format of the page). From the main window I embed a javascript in the printWin window that calls the...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
10
by: jon | last post by:
I'm trying to use a hidden iframe to print the contents of one div seamlessly. Currently I can create the hidden iframe, copy the contents of the div to the iframe, and print it. I even have a...
2
by: Brad Pears | last post by:
I have some sample code that uses the print dialog, print preview and a print direct options. If I select print preview and then click the printer icon from that, the document prints. If I...
10
by: S_K | last post by:
Hi, I have a directory full of a number of .PDF files that I need to print. Is there any simple way to do this? Using PdfReader purhaps? Thanks in advance. Steve
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.