Click here to Skip to main content
16,020,677 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I am a starter.
I did a project for my hotel in that is now almost complete.
However, I have a problem with reporting.
I need to print the report in a smaller size.
I have few questions related to this.

1.If I connect the dot matrix printer of smaller size will it shrink the data to paper size or it will come only for A4 size.

2.Is there any coding or it will do it automatically.

Please help me its very urgent.
Posted
Updated 20-May-10 22:20pm
v2
Comments
Dalek Dave 21-May-10 4:21am    
Edited for readability, grammar and spelling.

1 solution

Nobody can give you a correct answer to this.

You haven't specified how you do your printing, what kind of report do you use (if any at all).


Generally speaking:
You'll have to create / save 2 objects, a printsettings and a pagesettings.
(both in the system.drawing.printing namespace)
For saving them I suggest you serialize them into text files, you could do it to a database but I'v found that to be somewhat troubling with some printers.

Then apply those objects to your report. Of course your report will have to be made such that it can display all data with the correct papersize.

Some printers scale there pages automatically but I don't know of any matrix printers that do this.

You can also just display your report on the screen and then let the user click the print button (normally your report generator has a way to display it on screen and that print button should be in it) and from there the user will be able to select the printer. But that means the user has to do this every time then.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900