Page 1 of 1

Spaces in HTML Hyperlink

Posted: Fri Aug 24, 2012 2:24 pm
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.

Re: Spaces in HTML Hyperlink

Posted: Fri Aug 24, 2012 7:35 pm
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.

Re: Spaces in HTML Hyperlink

Posted: Fri Aug 24, 2012 9:21 pm
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

Re: Spaces in HTML Hyperlink

Posted: Mon Aug 27, 2012 7:35 am
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.

Re: Spaces in HTML Hyperlink

Posted: Mon Aug 27, 2012 5:27 pm
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

Re: Spaces in HTML Hyperlink

Posted: Tue Aug 28, 2012 8:05 am
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.