Click here to Skip to main content
12,750,710 members (36,770 online)
Rate this:
Please Sign up or sign in to vote.
See more: VS2005 VB Visual-Studio VB.NET , +
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
Sergey Alexandrovich Kryukov 24-Sep-12 13:18pm
It's a bad idea to try to control a printer directly... What could make it really required?
Rate this: bad
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:[^].
Don't create accidental complexity:[^].
Separate concerns:[^].

pasztorpisti 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 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? :-)
shanmugamvasu 28-Sep-12 8:46am
Thanks for your response. Finally i solved the problem. And i post my solution
Rate this: bad
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: This Article describes how print a raw data.

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


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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170215.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2017
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