Spaces in HTML Hyperlink

Stimulsoft Reports.NET discussion
Post Reply
tims
Posts: 41
Joined: Thu Mar 26, 2009 9:40 am
Location: Canada

Spaces in HTML Hyperlink

Post by tims »

I need a hyperlink in an HTML file with spaces as it is linking to a windows folder. When I create the HTML file however, all the links are coming out with %2520 instead of the spaces.
I tried adding StiOptions.Export.Html.ReplaceSpecialCharacters = FALSE to the Begin Render event, but still it comes out the same.
in the HTML Preview, it showing as
file:///C:/Program%2520Files%2520(x86)/LambdaTech%2520Solutions/Report%2520Generator/Output/7_25_2012-3.52.43%2520PM/Work%2520Order%2520Summary.html
and in the actual file saved as HTML, it is generated as
C:\Program%20Files%20(x86)\LambdaTech%20Solutions\Report%20Generator\Output\7_25_2012-3.52.43%20PM\Work%20Order%20Summary.html

Should be coming out as
C:\Program Files (x86)\LambdaTech Solutions\Report Generator\Output\7_25_2012-3.52.43 PM\Work Order Summary.html

Please advise.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Spaces in HTML Hyperlink

Post by Ivan »

Hello,

Can you please send us a sample report template with data or MDC file of the rendered report, which reproduce the issue, and resulting html file?

Thank you.
tims
Posts: 41
Joined: Thu Mar 26, 2009 9:40 am
Location: Canada

Re: Spaces in HTML Hyperlink

Post by tims »

The Text is a link to C:\Program Files\Internet Explorer\test file.html which shows up as C:\Program%20Files\Internet%20Explorer\test%20file.html when saved as html.

http://dl.dropbox.com/u/2491635/Sample%20HTML.mrt

http://dl.dropbox.com/u/2491635/Report.html
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Spaces in HTML Hyperlink

Post by Ivan »

Hello,

Please specify the URI in accordance with the specification.
For example, instead of

Code: Select all

	C:\Demo\YourFile.jpg
use

Code: Select all

	file:///C:/Demo/YourFile.jpg
Thank you.
tims
Posts: 41
Joined: Thu Mar 26, 2009 9:40 am
Location: Canada

Re: Spaces in HTML Hyperlink

Post by tims »

Thanks that worked.

I'm having another issue with another link however. I'm getting an error
Expression in Hyperlink property of 'Text4' can't be evaluated!

It should be outputting as
file:///P:/HTML/REPORTTEST/ARGPDR_2.html as shown in the text box with the same expression as the hyperlink which is on the 1.02 and 1.03 text.



http://dl.dropbox.com/u/2491635/Work%20 ... ummary.mdc
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Spaces in HTML Hyperlink

Post by HighAley »

Hello.

There is already no Hyperlink property in sent file. Please, send us a report template with data to reproduce the issue.

Thank you.
Post Reply