Results 1 to 2 of 2

Thread: Read Crystal Reports Template

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    15

    Read Crystal Reports Template

    Hey Guys,

    Can we read the template of a crystal report? The reason I need to is I have to getvalues from the users for the values in the template they select from the list.

    e.g If the report has a label with caption "Name" and a Text Box with the Name="Customer Name",

    The form will load those and the user will enter Value for the Text box.

    Thanks.

  2. #2
    Addicted Member
    Join Date
    Jan 2001
    Location
    MPLS
    Posts
    187

    Re: Read Crystal Reports Template

    Yes you can read the entire design of the report via the RDC. First set the references in your project to the Crystal Reports Activex Designer Runtime Library (RDC). I assume when you say template you mean an existing report? Then open the report using code like

    Dim rpt As CRAXDRT.Report
    Dim myapp As CRAXDRT.Application
    Set myapp = New CRAXDRT.Application
    Set rpt = myapp.OpenReport(txtRptName)

    Once the report is "open" you can now traverse the enitre report (rpt object) sections to pick off whatever you need to dynamically request from the user before running.

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