Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2012, 07:29 AM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default vb6 sytem crashing when i try to print crystal reports

my vb6(sp6) crashes every time I try to print a crystal report .it actualluy prints the report but then closes soon afterwards listed below is the code that i am using. can anyone help me on what could be the cause of this I have googled all over the place on what could cause my system to crash but up to no i am still looking.


Code:
Dim Report As New CRAXDDRT.Report
Dim App As New CRAXDDRT.Application



Private Sub Command1_Click()

 Set Report = App.OpenReport("C:\SBWBWIN\Report1.rpt")
    Report.Database.Tables(1).Location = "C:\sbwbwin\NewDatabase.mdb"
    CRViewer.ReportSource = Report
    CRViewer.ViewReport
    CRViewer.Zoom (100)
    Screen.MousePointer = vbDefault
    'CRViewer.PrintReport
    Report.PrintOut False, nocopies
    
End Sub
i am using vb6(sp6). crystal reports 11 and windows 7 proffessional





Similar Threads
Thread Thread Starter Forum Replies Last Post
input URDU text in vb6. print in Crystal Reports Mufakhar VB How-To 2 December 8th, 2014 03:23 AM
vb6 - crystal reports runs only once svharishtech Pro VB 6 3 August 3rd, 2013 06:01 AM
Designing Crystal Reports from VB6 ranasrule Beginning VB 6 0 November 9th, 2006 12:47 AM
VB6 and Crystal Reports jorgefejr Pro VB 6 0 October 1st, 2006 05:50 PM
Vb6 with crystal reports 10 Eleakim Cribe Pro VB 6 0 June 22nd, 2006 09:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.