Theres about 20 instances in the program code where CRViewer91 is usually used.CRViewer on your own doesnt work.
Crystal Report 9 For Vb6 Code Where CRViewer91CRViewer91.ReportSource Report CRViewer91.Refresh CRViewer91.ViewReport VB6 wont make use of the CrystalActiveXReportViewer unless I open up it in officer mode. Arranged a reference point to (Project-References): - Crystal Reports ActiveX Developer Run Time Collection 11.5 (craxdrt.dll) And A component benchmark to (Project- Parts): - Crystal ActiveX Survey Viewer Library 11.5 Create sure you make use of the correct components named precisely as I have got. Include a type called Type1 with a command word button known as Control1 Include the using code to the code home window of Type2 Program code Option Explicit Private Form2 As Type2 Private mstrFile As String Private Sub Command word1Click() mstrFile c:MyReportsSomeSavedReport.rpt Place Form2 New Form2 Call Type2.Display(mstrFile) End Sub Add a 2nd form known as Type2 and include the CR Viewer -named CrystalActiveXReportViewer1 - to it by choosing the element from the ToolBox. In Form2s code window: CODE Option Explicit Personal omCrystalApplication As CRAXDRT.Program Private WithEvents omCrystalReport As CRAXDRT.Report Public Bass speaker Screen(sFile As Thread) Contact OpenReport(sFile) Me.Present End Subwoofer Private Bass speaker OpenReport(sFile As String) Set omCrystalApplication New CRAXDRT.Software Collection omCrystalReport Nothing Set omCrystalReport omCrystalApplication.0penReport(sFile, crOpenReportByTempCopy) CrystaIActiveXReportViewer1.ReportSource omCrystalReport Call CrystalActiveXReportViewer1.ViewReport Finish Sub Set the tasks startup item to Type1 (Project-Properties from Project1-Start item) If you would like the statement windowpane to show Modal, then alter Me.Show to Me.Display vbModal The consumer will after that require to near the report window previous to control returning to Form1 Add any other bells and whistles you need and end up being certain to include error managing. Reasons such as off-topic, duplicates, fire flames, unlawful, vulgar, or learners publishing their homework. The Tek-Tips personnel will examine this out and get appropriate actions. Unauthorized reproduction or linking banned without expressed written authorization. Enrollment on or make use of of this web site constitutes acceptance of our Personal privacy Policy. Crystal Report 9 For Vb6 Software Program ProgrammersThis is a neighborhood of tens of hundreds of software program programmers and site developers including Wrox book authors and readers. By signing up for nowadays you can blog post your own programming questions, respond to other developers questions, and get rid of the ads that are usually displayed to guests. ![]() Choose From an Existing Record and browse to the statement file. The Survey document will be transformed to a DSR for use with the RDC in Visible Basic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |