Results 1 to 2 of 2

Thread: problem in opening a report from vb 6.0

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    260

    problem in opening a report from vb 6.0

    Dear friends

    I make a report in crystal reports 10 . the report is based of stored procedure which takes an input parameter. the report is working fine individually but when we open it through vb 6.0 it gives the username error below is my code . please check and help me to identify the error.

    Code:
    Dim Appl As New CRAXDRT.Application
    Dim report As New CRAXDRT.report
     
    CrystalActiveXReportViewer1.Top = 0
    CrystalActiveXReportViewer1.Left = 0
    CrystalActiveXReportViewer1.Height = 12336
    CrystalActiveXReportViewer1.Width = 15408
    Set report = Appl.OpenReport(App.path & "\Invoice_Report.rpt")
    report.Database.LogOnServer "pdssql.dll", "mynetwork.com", "mydatabase", "myuser", "mypass"
    report.DiscardSavedData
    CrystalActiveXReportViewer1.ReportSource = report
    
    CrystalActiveXReportViewer1.ViewReport

    Please help to identy and sort the error. its urgent

    thanks in advance


    Shivpreet2k1

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: problem in opening a report from vb 6.0

    Moved To Reporting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width