Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 21st, 2004, 12:01 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can anyone help me to solve this error

Can anyone help me solve following problem

I have developed an application in Visual Basic (ver 6.0) and Crystal Reports (9.2) for reports.

I can print report only once !

Let me explain this
Suppose from Menu I viewed and printed a report.
I existed from this back to menu and printed the same.. I will get error
Visual Basic Encountered a problem need to close. We are sorry for inconvinience

If you were in middle of something, the information you were woring on migt be lost

Please tell Micrsoft about this problem

If I choose to close the windo by saying "Don't send"
I get error
The instruction at 0x3b06aebb referenced memory at "x09a59cbc". The momory could not be "read"
Click on OK to terminate program

There is only one button "OK"
Hence you have no choise other than terminating the program

Code I use to print view and then print report

 Dim mireport As CRAXDDRT.Report
    Dim miCRApp As New CRAXDDRT.Application
    'Dim mireport As ParameterFieldDefinitions
    Dim CRXParamDefs As CRAXDRT.ParameterFieldDefinitions
    Dim CRXParamDef As CRAXDRT.ParameterFieldDefinition

    Set mireport = miCRApp.OpenReport(App.Path & "\bankmst.rpt")
    mireport.EnableParameterPrompting = False


    With CRViewer
        .ReportSource = mireport
        .ViewReport
        While .IsBusy
            DoEvents
         Wend
        .Zoom "90"
        .Visible = True
    End With
    Set miCRApp = Nothing
    Set mireport = Nothing

 
Old October 5th, 2005, 04:43 AM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by vikaspa
 Can anyone help me solve following problem

I have developed an application in Visual Basic (ver 6.0) and Crystal Reports (9.2) for reports.

I can print report only once !

Let me explain this
Suppose from Menu I viewed and printed a report.
I existed from this back to menu and printed the same.. I will get error
Visual Basic Encountered a problem need to close. We are sorry for inconvinience

If you were in middle of something, the information you were woring on migt be lost

Please tell Micrsoft about this problem

If I choose to close the windo by saying "Don't send"
I get error
The instruction at 0x3b06aebb referenced memory at "x09a59cbc". The momory could not be "read"
Click on OK to terminate program

There is only one button "OK"
Hence you have no choise other than terminating the program

Code I use to print view and then print report

Dim mireport As CRAXDDRT.Report
    Dim miCRApp As New CRAXDDRT.Application
    'Dim mireport As ParameterFieldDefinitions
    Dim CRXParamDefs As CRAXDRT.ParameterFieldDefinitions
    Dim CRXParamDef As CRAXDRT.ParameterFieldDefinition

    Set mireport = miCRApp.OpenReport(App.Path & "\bankmst.rpt")
    mireport.EnableParameterPrompting = False
    
    
    With CRViewer
        .ReportSource = mireport
        .ViewReport
        While .IsBusy
            DoEvents
         Wend
        .Zoom "90"
        .Visible = True
    End With
    Set miCRApp = Nothing
    Set mireport = Nothing






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to solve this error? ramk_1978 Classic ASP Components 1 June 27th, 2006 02:51 AM
Can any one help to solve the Thread error here vivekshah C# 1 April 12th, 2006 05:10 AM
plz help me solve this error moushumi Classic ASP Databases 1 March 31st, 2004 10:23 PM
Error that I could not solve sajjad27 VS.NET 2002/2003 0 August 17th, 2003 11:40 PM
Unable to solve error!! nvillare Classic ASP Basics 1 July 31st, 2003 01:53 AM





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