Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2005, 03:36 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can not get duplex to work

Hi all,

I have a service which generates reports, certain reports on certain printers need to be printed duplex.
The printer is setup to default on the machine the service is running on to print all jobs in duplex.
The code below is what I am using:

rd.Database.Links.Reset();
rd.Database.Tables.Reset();
rd.Refresh();
rd.SetDataSource(dt);
rd.Refresh();
rd.FormatEngine.PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Default;
rd.PrintToPrinter((int)dr["Copies"],true,0,0);

Has anyone got any suggestions, all help really appreciated..

Thanks in advance






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 Ctrl+F5 don't work, F5 does work? jimboak BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 June 29th, 2008 03:46 AM
VBA Printer Properties - Duplex Rhobok Excel VBA 0 June 1st, 2008 02:46 PM
why it doesn't work sangfroid C# 2005 2 January 21st, 2008 02:38 PM
Chapter 6: DUPLEX example thsun BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 5 January 11th, 2008 12:36 PM
Why Does This Work? Little Shell VB How-To 2 October 13th, 2006 05:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.