Solved

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

Posted on 2007-04-05
8
903 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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
 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

816 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

8 Experts available now in Live!

Get 1:1 Help Now