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. VB 6.0/Crystal Reports

VB 6.0/Crystal Reports

Scheduled Pinned Locked Moved Visual Basic
workspace
4 Posts 3 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.
  • I Offline
    I Offline
    Indrojeet_Bhattacharya
    wrote on last edited by
    #1

    I am sick of using Data Environment for creating reports through VB 6.0 so I wanted to know the exact method with full detail as to how can we make use of crystal reports through VB6.0 for the creation of reports. Thanks & Regard, Indrojeet

    Indrojeet Bhattacharya

    D D 2 Replies Last reply
    0
    • I Indrojeet_Bhattacharya

      I am sick of using Data Environment for creating reports through VB 6.0 so I wanted to know the exact method with full detail as to how can we make use of crystal reports through VB6.0 for the creation of reports. Thanks & Regard, Indrojeet

      Indrojeet Bhattacharya

      D Offline
      D Offline
      Dileep_Vickey
      wrote on last edited by
      #2

      Hi, I dont know how to create crystal reports by using VB6. But i can help u for calling report from VB6. Here is a sample code gtRptDsn = "DSN = " & ServerName & ";UID = **; PWD=****" .Connect = gtRptDsn .Destination = crptToWindow .Destination = crptToPrinter in report function .ReportFileName = tcpath & "ReportName.rpt" //stored procedure parameters .StoredProcParam(0) = GiSbuid .StoredProcParam(1) = iProjectId .StoredProcParam(2) = iVendorId .StoredProcParam(3) = ICategoryId .StoredProcParam(4) = IGroupId .StoredProcParam(5) = IMaterialId //for header(like company name and addresss) use Fomula .Formulas(0) = "Company='" & GTEnterprise & "'" .Formulas(1) = "Add1='" & GTSbuAdd1 & "'" .Formulas(2) = "Add2='" & GTSbuADD2 & "'" // to show report RptQuotation.Action = 1 RptQuotationReport.PageZoom 100 // to make the report as a child of MDI form .WindowParentHandle = mdiFormMain.hwnd By Dileep I love my bug since she is my best friend.

      I 1 Reply Last reply
      0
      • D Dileep_Vickey

        Hi, I dont know how to create crystal reports by using VB6. But i can help u for calling report from VB6. Here is a sample code gtRptDsn = "DSN = " & ServerName & ";UID = **; PWD=****" .Connect = gtRptDsn .Destination = crptToWindow .Destination = crptToPrinter in report function .ReportFileName = tcpath & "ReportName.rpt" //stored procedure parameters .StoredProcParam(0) = GiSbuid .StoredProcParam(1) = iProjectId .StoredProcParam(2) = iVendorId .StoredProcParam(3) = ICategoryId .StoredProcParam(4) = IGroupId .StoredProcParam(5) = IMaterialId //for header(like company name and addresss) use Fomula .Formulas(0) = "Company='" & GTEnterprise & "'" .Formulas(1) = "Add1='" & GTSbuAdd1 & "'" .Formulas(2) = "Add2='" & GTSbuADD2 & "'" // to show report RptQuotation.Action = 1 RptQuotationReport.PageZoom 100 // to make the report as a child of MDI form .WindowParentHandle = mdiFormMain.hwnd By Dileep I love my bug since she is my best friend.

        I Offline
        I Offline
        Indrojeet_Bhattacharya
        wrote on last edited by
        #3

        What all .dll references I need to add ?

        Indrojeet Bhattacharya

        1 Reply Last reply
        0
        • I Indrojeet_Bhattacharya

          I am sick of using Data Environment for creating reports through VB 6.0 so I wanted to know the exact method with full detail as to how can we make use of crystal reports through VB6.0 for the creation of reports. Thanks & Regard, Indrojeet

          Indrojeet Bhattacharya

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Indrojeet_Bhattacharya wrote:

          so I wanted to know the exact method with full detail as to how can we make use of crystal reports through VB6.0 for the creation of reports.

          If you want that much detail, read the documentation on Crystal Reports. Though I think all support has been dropped for VB6 in the lastest versions.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          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