[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 914
  • Last Modified:

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

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
PapaLorax
Asked:
PapaLorax
  • 3
  • 2
  • 2
  • +1
1 Solution
 
MOA81Commented:
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
 
PapaLoraxAuthor Commented:
you mean to adjust the hyperlink property through the ASP page?

How would I do that?
0
 
MOA81Commented:
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
mrichmonCommented:
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
 
PapaLoraxAuthor Commented:
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
 
mrichmonCommented:
Sorry - I guess I am not sure what exactly you are looking for.
0
 
mlmccCommented:
No way tpo pass the "virtual directory" that i know of.

mlmcc
0
 
PapaLoraxAuthor Commented:
Is there a way on a Crystal Reports Hyperlink to read from web.config or an application variable?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now