borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (CRAXDRT from which library)Next Topic (HELP!!!) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : what is the error
Poster Message
ola_q
Level: Trainee

Registered: 29-05-2006
Posts: 2

icon what is the error

Private Sub crystal11_AfterUserChanged()
  
   Dim app1 As New CRAXDRT.Application
   Dim report As CRAXDRT.report
  
   Set report = app1.OpenReport("C:\Documents and Settings\ola_q\My Documents\GP\report\TO HOME MAY CONCERN2.rpt")

    report.DiscardSavedData
    report.ParameterFields(1).ClearCurrentValueAndRange
    report.ParameterFields(1).AddCurrentValue (txtEmployeeID.Value)
    CRViewer.ReportSource = report
    CRViewer.Refresh
    CRViewer.ViewReport
  
   Set app1 = Nothing
    Set report = Nothing

End Sub

i'm writing this code on vb and i keep have this error

Run time error "424"
object required


ola

____________________________
ola

30-05-2006 at 12:16 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: what is the error

Hi,
Just a guess.. you haven't said where the error occurs but should
CRViewer.ReportSource = report

be

Set CRViewer.ReportSource = report

?
Kieron



____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

04-06-2006 at 10:18 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : what is the error
Previous Topic (CRAXDRT from which library)Next Topic (HELP!!!) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder