Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Print invoice from vb6 with crystal report 8.5

Posted on 2009-05-10
2
Medium Priority
?
796 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 200 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 101

Accepted Solution

by:
mlmcc earned 300 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses

916 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