Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Multiple Reports to a Single Print Job Post Reply Post New Topic
Author Message
HairyMike
Newbie
Newbie
Avatar

Joined: 19 Mar 2008
Location: United Kingdom
Online Status: Offline
Posts: 8
Quote HairyMike Replybullet Topic: Multiple Reports to a Single Print Job
    Posted: 24 Apr 2008 at 1:59am
Good morning,

We have a system for printing jobcards for a car service department. There are upto 3 different reports grouped together for 1 jobcard. At the start of the day, the service manager can hit a button to print all the jobcards for the day. This is fine if the service department is on the local network, but we also operate a wan with users logging into the app through a citrix server. The citrix uses an app called uniprint to send the print jobs back to the users machine. Because the load times of these reports differ, the citrix users find that the jobcards come out in the wrong order.

I don't know if this is possible, but I want to group the 3 reports for the 1 jobcard into one object for printing.

This is the code I want to change:
Code:
pReport.PrintToPrinter(Copies, False, i, i) If Me.ReportType = eReportType.JobCard Then If oUser.ControlWorkshop.JobCardType = "R" Then Dim newreport As New rptJobCardExtraRenault newreport.Load() newreport.PrintToPrinter(1, False, 0, 1) newreport.Dispose() newreport = Nothing Else If oUser.ControlWorkshop.JobCardType = "" Then Dim newreport As New rptJobCardExtra newreport.Load() newreport.PrintToPrinter(1, False, 0, 1) newreport.Dispose() newreport = Nothing Dim newreport2 As New rptAdditionalWork newreport2.Load() newreport2.PrintToPrinter(1, False, 0, 1) newreport2.Dispose() newreport2 = Nothing End If End If


Edited by HairyMike - 24 Apr 2008 at 2:10am
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 24 Apr 2008 at 7:15pm
There are third party utilities for merging multiple reports into a single report.

Another idea is to create a blank main report with three sections. And put each of the existing reports into a section as a subreport. That way CR prints them all out one after the other as a single report.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
HairyMike
Newbie
Newbie
Avatar

Joined: 19 Mar 2008
Location: United Kingdom
Online Status: Offline
Posts: 8
Quote HairyMike Replybullet Posted: 25 Apr 2008 at 1:06am
Thanks Brian..  Using sections to merge sounds like a good idea.  I've also found a website called PDFBox which hosts some open source pdf utilities (including the ability to merge documents)  :)
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 25 Apr 2008 at 2:16am
PDFBox? That's a new one to me. I would be interested in hearing how it works out for you.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.016 seconds.