How do I add inline hyperlinks to a textbox

Stimulsoft Reports.WEB discussion
pickup.j
Posts: 13
Joined: Fri Jul 29, 2016 8:14 am

How do I add inline hyperlinks to a textbox

Post by pickup.j »

I'm having an issue where I can seem to add an inline hyperlink to a section of text with a textbox. Usually, when I use a HTML editor, I would surround the relevant text with anchor tags but I believe these are not supported even with the "Allow HTML Tags" set to true.

For example: See daily schedules for talks and demonstrations

Where the words "daily schedules" would be a hyperlink to a webpage on our organisations website.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How do I add inline hyperlinks to a textbox

Post by HighAley »

Hello.

Unfortunately, there is no support of all HTML tags and the A tag is not supported now.

If you use HTML Viewer, you could try to set next workaround.

1. Set this static option:

Code: Select all

StiOptions.Export.Html.ReplaceSpecialCharacters = false;
2. Set the Allow HTML tags property to False.

Thank you.
pickup.j
Posts: 13
Joined: Fri Jul 29, 2016 8:14 am

Re: How do I add inline hyperlinks to a textbox

Post by pickup.j »

Hi

Could you elaborate about the HTML Viewer?

I use the Stimulsoft software as a third party for designing documents through Toptix SRO4 software so I'm 1) quite a novice 2) Not come across the HTML Viewer before

Many thanks
Jon
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How do I add inline hyperlinks to a textbox

Post by Alex K. »

Hello,

> Could you elaborate about the HTML Viewer?

Could you explain your issue in more details?

Thank you.
pickup.j
Posts: 13
Joined: Fri Jul 29, 2016 8:14 am

Re: How do I add inline hyperlinks to a textbox

Post by pickup.j »

Hi

I use Stimulsoft as a document design tool third party plug in for the SRO4 Toptix product. We have to design an array of documents including emails with hyperlinks in. Previously we used an HTML editor and used A tags but as you mentioned these are not currently supported (is there any plans to add these). Without A tags being supported the only way I can accomplish the desired affected is to use a separate text box that has the hyperlink text in (and using the Interaction property to create the hyperlink). This in turn is creating issues it is very difficult to to get the correct spacing between both sets of text. The example in my initial post requires the use of 3 separate text boxes.

You mentioned that I should use the HTML Viewer and set the static option as StiOptions.Export.Html.ReplaceSpecialCharacters = false; and the Allow HTML tags property to False but can you elaborate how and where I set the static option. The Allow HTML tags property to False is not a problem.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How do I add inline hyperlinks to a textbox

Post by HighAley »

Hello.

You could set this option in the Begin Render event of the report.

Thank you.
pickup.j
Posts: 13
Joined: Fri Jul 29, 2016 8:14 am

Re: How do I add inline hyperlinks to a textbox

Post by pickup.j »

Hi

Having added that to the Begin Render of the Report and setting the Allow HTML tags on each individual component to false what does this enable me to do?

Regards
Jon
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How do I add inline hyperlinks to a textbox

Post by HighAley »

Hello, Jon.

Do you see any changes in the Viewer?
You should get the right result.

Thank you.
pickup.j
Posts: 13
Joined: Fri Jul 29, 2016 8:14 am

Re: How do I add inline hyperlinks to a textbox

Post by pickup.j »

Hi

Apologies for not getting back to you in a while.

With that code added to the Reports Begin Render Event and the Allow HTML Tags set to false I still do not know what result to expect?

What I'm trying to accomplish is in text hyperlinks but I know I can't use the <A> anchor tags and when I separate the sentence into two text boxes it very difficult to get the alignment correct.

Regards
Jon
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How do I add inline hyperlinks to a textbox

Post by HighAley »

Hello, Jon.

I am sorry if my reply is rude.
Since you are using our product inside a third party product, we can't help you with your issue.
We do not know how the customer uses our product in their application.
Please, contact developers of the application that you use.

Thank you.
Post Reply