Solved

printing crystal report from vb

Posted on 2003-10-31
6
227 Views
Last Modified: 2010-05-03
How to print a crystal report directly to a printer from vb without viewing the report? I did that crviewer.printreport , the report has to be printed directly, but nothing is happening,
with crviewer.viewreport , crystal report is coming and from there i can take a print also, but i am not getting a print with .printreport
waiting for reply,
thanks in advance
kishore
0
Comment
Question by:kbokku
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 

Accepted Solution

by:
nirmal_4194 earned 98 total points
ID: 9662444
add this code in your vb code, this will sure solve your problem.

.Destination = crptToPrinter
0
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 97 total points
ID: 9662825
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 10170879
One or the other should have helped.

mlmcc
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question