Print Page | Close Window

Multiple Reports to a Single Print Job

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=3014
Printed Date: 12 Mar 2025 at 9:34pm


Topic: Multiple Reports to a Single Print Job
Posted By: HairyMike
Subject: Multiple Reports to a Single Print Job
Date 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



Replies:
Posted By: BrianBischof
Date 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>


Posted By: HairyMike
Date 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)  :)


Posted By: BrianBischof
Date 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>



Print Page | Close Window