Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to use single MDI Child Form for all Crystal reports

How to use single MDI Child Form for all Crystal reports

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kedarrkulkarni
    wrote on last edited by
    #1

    Hello all, I have MDI Application in which i am displaying crystal reports. For that i have created a mdi child form. in which ReportViewer control is used to display reports. Now in my app, there would be many reports. so, do i need to create that many chile mdi forms and add reportviewer in all these forms? or else can i use single form and reportviewer to disaply all forms? and if yes.... how? because it is MDI application, it wont allow me to open multiple instances of single form. but, user may want to view multiple reports without closing other. any idea? Thanx.......!

    M 1 Reply Last reply
    0
    • K kedarrkulkarni

      Hello all, I have MDI Application in which i am displaying crystal reports. For that i have created a mdi child form. in which ReportViewer control is used to display reports. Now in my app, there would be many reports. so, do i need to create that many chile mdi forms and add reportviewer in all these forms? or else can i use single form and reportviewer to disaply all forms? and if yes.... how? because it is MDI application, it wont allow me to open multiple instances of single form. but, user may want to view multiple reports without closing other. any idea? Thanx.......!

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      I used to do this before changing to RS. Have a form with a viewer only Create and test your report in CR and save it as a .RPT file. Report should be based on stored procedure or at least a paramaterised query (I always used procs). In VB create a report (CR) using the .RPT file name (can't remember the details) Pass in the parameters as CR parameter array Connect the table objects in the report to the database Pass the report object to the viewer Show the MDI form.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups