Interaction.Hyperlink
Interaction.Hyperlink
Is there a way of setting the Interaction.Hyperlink value in code? OR
Set it to a value read from the Database?
Interaction.Hyperlink
Hello Mike,
component.Hyperlink.Value = "test";
Thank you.
You can use following code:Is there a way of setting the Interaction.Hyperlink value in code?
component.Hyperlink.Value = "test";
You can specify following expression in Interaction.Hyperlink property:Set it to a value read from the Database?
Code: Select all
{Customers.Url}
Interaction.Hyperlink
Let me be more specific.
I have a Variable.
I can set the Hyperlink property in the property tab in design mode.
How do I do this in code.
I have this for loop which gets me all the StiVariables I'm using in the report.
stVar doesn't have a Hyperlink property for me to set.
What am I doing wrong???
foreach (Stimulsoft.Report.Dictionary.StiVariable stVar in report.Dictionary.Variables)
{
}
Interaction.Hyperlink
Hello,
If i correct understand you need to change value of variable which used in hyperlink expression of component? If that correct you can use following code:
If you want change hyperlink value in component, you can use following code:
This code will be process all components in report template.
Thank you.
If i correct understand you need to change value of variable which used in hyperlink expression of component? If that correct you can use following code:
Code: Select all
foreach (Stimulsoft.Report.Dictionary.StiVariable stVar in report.Dictionary.Variables)
{
stVar.ValueObject = "test";
}
Code: Select all
StiComponentsCollections comps = report.GetComponents();
foreach (StiComponent comp in comps)
{
if (condition)
comp.Hyperlink.Value = "test";
}
Thank you.