Print Page | Close Window

CommonDialog/ Printing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15461
Printed Date: 23 November 2024 at 5:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommonDialog/ Printing
Posted By: Boris
Subject: CommonDialog/ Printing
Date Posted: 26 October 2009 at 11:06am
I have a problem when printing Crystal Reports. Can anybody show me a way of using the ShowPrint dialog. I just don't get it... I want to be able to select a choice of printer and then send that to CRX1.
 
 
I have this code which works when you don't want to change the printer.
 
Dim crxApp As New CRAXDRT.Application
Private WithEvents crxRpt As CRAXDRT.Report

Set crxRpt = crxApp.OpenReport(m_FilePath)
    CRViewer1.ReportSource = crxRpt

crxRpt.SelectPrinter "", "", ""
        crxRpt.PrintOut False, 1
 
However, this only works with the default printer. I need to feed the result of the Common Dialog into the Selectprinter code. Can anybody help???
 
Regards to all,
 


-------------
Boris

Product: Xtreme SuitePro (ActiveX) version 16.4.0 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6

VS 2005-2008-2010-2013



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net