Click here to Skip to main content
11,438,782 members (78,695 online)
Rate this: bad
good
Please Sign up or sign in to vote.
i have a crystal report in vs2005. I have to print this report in rollpaper with dotmatrix printer. After printng the report it omit some waste spaces.

I have to stop the printer where the last line was printed.

i was seached with this problem but i am unable to find a solution.

please helpme to come out this problem
Posted 24-Sep-12 2:18am
Comments
Sergey Alexandrovich Kryukov at 24-Sep-12 13:18pm
   
It's a bad idea to try to control a printer directly... What could make it really required?
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

It's a really bad idea to try to control a printer directly, especially with CrystallReports. You should think in terms of a document, and always try to print the whole document. If a user wants to print just part of the document, that user can choose to do it at the level of the print dialog, by selecting a range of pages. But they will be pages, not graphic elements of the document.

Don't try to make things more complex, convoluted or entangled than they can be:
Keep it that way: http://en.wikipedia.org/wiki/KISS_principle[^].
Don't create accidental complexity: http://en.wikipedia.org/wiki/Accidental_complexity[^].
Separate concerns: http://en.wikipedia.org/wiki/Separation_of_concerns[^].

—SA
  Permalink  
v2
Comments
pasztorpisti at 24-Sep-12 22:30pm
   
5ed, this time for KISS principle that really works but a lot of people don't follow it. I would mention that utilizing the advices of both 3 linked pages takes some time as they require a big change in mindset. I remember when I started programming I was willing to overcomplicate things but that time my focus was rather on challange than design.
Sergey Alexandrovich Kryukov at 24-Sep-12 23:41pm
   
Thank you so much. Well, the change in mindset could be considerable, but no change would go nowhere, wouldn't it? :-)
--SA
shanmugamvasu at 28-Sep-12 8:46am
   
Thanks for your response. Finally i solved the problem. And i post my solution
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I solved this Problem, wecan't print dircetly in rollpaper with Crystal Reports for dynamic length(ie Dynamic Page Size), Because in Crystal report we have a standard page size(A4,Letter,Envelope etc ..)

For this Case Please Go through this Article: http://support.microsoft.com/kb/322090. This Article describes how print a raw data.

Write and allign all your data in a Textfile and Print.

Thanks
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.150506.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100