| | |
Runtime error :20525 unable to load the report
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2007
Posts: 76
Reputation:
Solved Threads: 4
any problem here with the code coz am getting the error as unable to load the report
error no:20525
and it shows the property read only
can u clear it plzzzz
CrystalReport1.ReportFileName = App.Path + "\REPORTS\Nature_Of_Complaint.rpt"
CrystalReport1.ParameterFields(0) = "natureofcomplaint;" & cmbReport.Text & ";true"
CrystalReport1.ParameterFields(1) = "fromdate;" & dtpFrom.Value & ";true"
CrystalReport1.ParameterFields(2) = "todate;" & dtpTo.Value & ";true"
CrystalReport1.Action = 1
error no:20525
and it shows the property read only
can u clear it plzzzz
CrystalReport1.ReportFileName = App.Path + "\REPORTS\Nature_Of_Complaint.rpt"
CrystalReport1.ParameterFields(0) = "natureofcomplaint;" & cmbReport.Text & ";true"
CrystalReport1.ParameterFields(1) = "fromdate;" & dtpFrom.Value & ";true"
CrystalReport1.ParameterFields(2) = "todate;" & dtpTo.Value & ";true"
CrystalReport1.Action = 1
Hi,
Working with CR9 is quite different, It is and RDC compared to lower versions which are "OCX". u need to use CR Viewer, Place the CR Viewer on the Form and use this code:
Regards
Veena
Working with CR9 is quite different, It is and RDC compared to lower versions which are "OCX". u need to use CR Viewer, Place the CR Viewer on the Form and use this code:
vb Syntax (Toggle Plain Text)
Dim m_Report As CRAXDDRT.Report Dim m_Application As New CRAXDDRT.Application Set m_Report = Nothing Set m_Report = m_Application.OpenReport(App.Path & "\MyRep.rpt", 1) With CRViewer1 .EnableExportButton = True .EnablePrintButton = True .EnableCloseButton = True .ReportSource = m_Report .Height = Me.ScaleHeight - 1000 .Width = Me.ScaleWidth .Left=200 .Top =200 .ViewReport End With
Regards
Veena
Hi,
You cannot show it as a Seperate Window as our prev Versions, Instead U can add one More Form and a Viewer, and Call to show that form here, It would Look like a Seperate Window..
To pass Parameter:
To Change Connection :
Pass these before viewing the report..
REgards
Veena
You cannot show it as a Seperate Window as our prev Versions, Instead U can add one More Form and a Viewer, and Call to show that form here, It would Look like a Seperate Window..
To pass Parameter:
vb Syntax (Toggle Plain Text)
m_Report.ParameterFields.Item(1).AddCurrentValue "MyParameter"
To Change Connection :
vb Syntax (Toggle Plain Text)
dim dCon As CRAXDRT.ConnectionProperties Set dCon =m_Report.Database.Tables.Item(1).ConnectionProperties dCon("DSN") ="MyDSNName" dCon("Database") ="MyDBName" dCon("User OD") ="MyUserID" dCon("Password") ="MyPassword"
Pass these before viewing the report..
REgards
Veena
![]() |
Similar Threads
- CrystalReports.Engine: Load report failed (ASP.NET)
- problem connection vb6 & crystal report 11 (Visual Basic 4 / 5 / 6)
- Run-Time error 1004 - Unable to set the RowHeight property of the range class (Visual Basic 4 / 5 / 6)
- VB6 Runtime error 7 Out of memory (Visual Basic 4 / 5 / 6)
- VB6 application and Cryatal Reports Professional Addition 9 (Visual Basic 4 / 5 / 6)
- VB6 Runtime error 7 Out of memory (Visual Basic 4 / 5 / 6)
- Unable to load JIT Compiler (Windows NT / 2000 / XP)
- Unable To Load JIT Compiler (Web Browsers)
- Running Low on Virtual Memory, Runtime C++ Error (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: RichTextBox, I need help
- Next Thread: .:: Registering .OCX on Vista - Issue ::.
Views: 5467 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





