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
Solved

Print invoice from vb6 with crystal report 8.5

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

829 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