Results 1 to 7 of 7

Thread: Protecting crystal rpt

  1. #1

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    Protecting crystal rpt

    what can we do to protect the cyrstal rpt after putting on
    client machine so that the user or anybody should not open or
    ever if possible should not be able to see

    can somebody advise

  2. #2
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    You can include the reports in your exe (no rpt files), by using the report viewer.

    Examples are located here:

    http://support.crystaldecisions.com/...s/apps_rdc.pdf

  3. #3

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    crystal rpt

    i have seen the site but didnt get any thing related to my qry

    can u explain me how to include the rpts in exe

  4. #4
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    From the main menu select 'Project' and 'Add Crystal Reports x.x'.

    When the Crystal Report Gallery screen is displayed, clcik on the 'From an Existing Report' (I assume that you already created the report).

    This will add a new form containing the report viewer and a designers object, which is your report.

    You must now go to 'Project' / 'Properties' and change the Startup Object back to what it was, since crystal changes it to the new form with the report viewer.

    You will need to modify your code to load the report viewer with your report. You can use the same report viewer to display more than one report.

    showVendorDetail is a sub on the form containing the report viewer. To call it
    Code:
      call showVendorDetail
    Code:
    Public Sub showVendorDetail()
      
      Dim crxVendorDetail As New crVendorDetail
      
      Set crxVendorDetail = New crVendorDetail
      'Change report tables locations.
      For Each crxDB In crxVendorDetail.Database.Tables
        crxDB.Location = strSearchResultDataBase
    '    crxDB.SetSessionInfo "", Chr(10) & strPassWord
      Next crxDB
       
      CRViewer1.ReportSource = crxVendorDetail
    
    End Sub
    To get a better understanding of the report viewer, you will have to download some of the examples in that document.

    Good luck.

  5. #5

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    Crystal Report protecting

    Ken Bradford thanks 4 your reply
    I have tried as you advised me but i didnt fount the
    'Add crystal Report ' in Project menu
    so i couldnt move ahead can u tell me how to make it available

  6. #6
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    What version of cr are you running?

  7. #7
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373
    To be able to see: Crystal Reports # in the Add menu in the PRoject explore you should have to have enabled it in:
    Project...Components...Designers
    and select the Crystal Reports version that you have.

    Then it´ll appear in the project explorer
    "Who Dares Wins" - "Quien se Arriesga Gana"
    Mail me at:

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