Solved

Crystal Report Hyperlink Problem - Need to use a relative path.

Posted on 2007-04-05
8
900 Views
Last Modified: 2008-02-01
I have a crystal report (built with XI) in my ASP.Net 1.1 web application.

One of the fields has a hyperlink that opens a subreport.

Everything works great, but I am now creating another instance of my application in a different folder and would like to be able to have a relative link.

the link right now is:
"AppSubFolder/reports/Subreport.aspx?Subject=Lessons"

My first pereference is to make this totally relative and just have:
{RELATIVE PATH DIRECTIVE} & "Subreport.aspx?Subject=Lessons"

If it would be possible to tie this to something in the web.config file that would be acceptable as well.

FYI - All ASPX files associated with reports and all RPT files sit in the same folder.
0
Comment
Question by:PapaLorax
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 8

Expert Comment

by:MOA81
ID: 18858925
check the hyperlink option through asp.NET i guess there is an option for the relative path

you can do this with pictures this I am sure off
0
 
LVL 2

Author Comment

by:PapaLorax
ID: 18858978
you mean to adjust the hyperlink property through the ASP page?

How would I do that?
0
 
LVL 8

Expert Comment

by:MOA81
ID: 18859016
in the design mode right click on the hyperlinnk and click properties

check the options there

I am not quite sure but its worth trying

its been a while since I last used ASP.NET
0
 
LVL 35

Accepted Solution

by:
mrichmon earned 250 total points
ID: 18864339
If you have an asp:hyperlink then to adjust on the fly use

<asp:hyperlink id="yourId" ...anything else...  runat="server" />

On the code behind:

yourId.NavigateUrl = "your path";
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Author Comment

by:PapaLorax
ID: 18864405
I am not sure I understand. The hyperlink in on the Main Crystal Report output. I use the Crystal Reports Hyperlink option to link to an ASPX page that displays another crystal report (which pulls just a subset of data based on passing parameters in the HTML).

Another way to ask is -- is there a way to pass the "Virtual directory" name into a crystal report so that I can use it in a crystal report hyperlink.
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 18864608
Sorry - I guess I am not sure what exactly you are looking for.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18864634
No way tpo pass the "virtual directory" that i know of.

mlmcc
0
 
LVL 2

Author Comment

by:PapaLorax
ID: 18864695
Is there a way on a Crystal Reports Hyperlink to read from web.config or an application variable?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pull date to Group header 6 26
Response.Redirect Open new Form/tab/page? 5 29
Vb.net dynamic formulas in runtime 11 61
Two different visual studio versions 3 21
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now