Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: myReport.PrintToPrinter generating two copies Post Reply Post New Topic
Author Message
newbie14
Newbie
Newbie


Joined: 02 Oct 2009
Online Status: Offline
Posts: 9
Quote newbie14 Replybullet Topic: myReport.PrintToPrinter generating two copies
    Posted: 03 Jan 2010 at 8:52am

Dear All,
            I have been using this method myReport.PrintToPrinter(1, false, 0, 0);  to print to the printer all the while working well for all my other print out. But now I have use this for another my receipt printing it is always printing two copies. To add on I have even put like this myReport.PrintToPrinter(0, false, 0, 0);  but yet it prints two copies. Any solution to this? Thank you in advance.

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 04 Jan 2010 at 7:35am
Are there two copies when you view the report in Crystal before you print?  If so, then this is a data issue.  Try turning on "Select Distinct" in the Database menu.  If that doesn't work, you may have to do something with your groups so that it only displays once.
 
-Dell
IP IP Logged
newbie14
Newbie
Newbie


Joined: 02 Oct 2009
Online Status: Offline
Posts: 9
Quote newbie14 Replybullet Posted: 04 Jan 2010 at 7:43am
Dear Dell,
               No there is no duplicate data in my crystal report viewer it is just one page only. So what I have done now is that move the same code to another page and it works fine no more two copies. So what can possible the problem ya ?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.027 seconds.