Results 1 to 4 of 4

Thread: How to write short path to reach to Crystal Report

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    97

    How to write short path to reach to Crystal Report

    Hi everybody

    I have created a crystal report I have faced a problem which is writing the full path for crystal report, I have tried to write the following code:
    myReportDocument.Load("..\CtrlReport.rpt")
    but it is still not working, I mean the report viewer appears but without information,when I put the full path it is OK.


    Can any one help me to write something to return back to root(Short Path)?

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: How to write short path to reach to Crystal Report

    The report is in C:\

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    97

    Re: How to write short path to reach to Crystal Report

    no it is inside my project folder at visual studio 2005.

  4. #4
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: How to write short path to reach to Crystal Report

    your present code assumes that the location of your Report file is at c:
    Code:
    C:\CtrlReport.rpt
    post the full path where is file is located...

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