Solved

Print invoice from vb6 with crystal report 8.5

Posted on 2009-05-10
2
773 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now