Solved

Print invoice from vb6 with crystal report 8.5

Posted on 2009-05-10
2
782 Views
Last Modified: 2012-05-06
Dear Experts,
I developed an application with vb6 and right now, im using crystal report 8.5 for all the reporting needs and even creating invoices. However, my client wants the application to print invoices without first going into the crystal report screen. Coz rite now, whenever i call print invoice, my app will take the client to the crystal report screen and then he can print the invoice from there. Is there a way to print without first showing the report? Thanks in advance for the advice experts...
0
Comment
Question by:Slythie
2 Comments
 
LVL 46

Assisted Solution

by:tbsgadi
tbsgadi earned 50 total points
ID: 24347341
Have a look at the following:

http://www.experts-exchange.com/Database/Reporting_/Crystal_Reports/Q_20103667.html

Look at the part that shows without viewer

Good Luck!

Gary
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 75 total points
ID: 24348437
Here is another way

Option Explicit
Private crApp As CRAXDRT.Application
Private crRpt As CRAXDRT.Report

'
'   Open report
'
    Set crApp = New CRAXDRT.Application

    Set crRpt = crApp.OpenReport(txtReportName, 1)
          crRpt.DisplayProgressDialog = False
          crRpt.PrintOut False

mlmcc
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Advice in Xamarin 21 107
RUNRMTCMD from AS/400 12 83
VB script to continue despite error 2 46
"Failed to convert parameter value from a String to a Decimal." 4 29
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

679 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