<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Report Hyperlink Behavior</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Report Hyperlink Behavior]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 14:06:20 +0000</pubDate>
  <lastBuildDate>Wed, 04 Apr 2012 03:26:44 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=19359</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Report Hyperlink Behavior :    I want to have a link through...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67942&amp;title=report-hyperlink-behavior#67942</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5333">nicoleta@nexusm</a><br /><strong>Subject:</strong> 19359<br /><strong>Posted:</strong> 04 April 2012 at 3:26am<br /><br />I want to have a link through markup in a ReportRecordItem in a ReportControl and to fire an event when I click that link.<div>I have the following code in the Load event of the form.&nbsp;</div><div><pre style="text-align: left; : rgb248, 248, 252; "><font color="#0000a0"><span ="apple-tab-span"="" style="white-space:pre">	</span>public void Hyperlink_Click(object Sender, object Args)        {            MessageBox.Show("Clicked");        }        private void Form1_Load(object sender, EventArgs e)        {            try            {                axReportControl1.PaintManager.FixedRowHeight = false;                axReportControl1.EnableMarkup = true;                axReportControl1.MarkupContext.SetHandler(this);                axReportControl1.MarkupContext.SetMethod(this, "Hyperlink_Click");                                axReportControl1.Columns.Add(0, "ColumnName", 100, true);                var rec = axReportControl1.Records.Add();                var item = rec.AddItem("My link");                item.Caption = "&lt;TextBlock&gt;&lt;Hyperlink Click='Hyperlink_Click'&gt;Click this&lt;/Hyperlink&gt;&lt;LineBreak/&gt; newline link &lt;/TextBlock&gt;";                item.CreateEditOptions();                item.EditOptions.EditControlStyle = XTPReportEditStyle.xtpEditStyleMultiline;</font></pre><pre style="text-align: left; : rgb248, 248, 252; "><font color="#0000a0"><span ="Apple-tab-span" style="white-space:pre">		</span>axReportControl1.Populate();            }            catch (Exception exc)            {                MessageBox.Show(exc.ToString());            }        }</font></pre></div><div><br></div><div>On the line of code "axReportControl1.MarkupContext.SetHandler(this);" the following exception occurs:&nbsp;</div><div><div>&nbsp; System.InvalidCastException: Specified cast is not valid.</div><div>&nbsp; &nbsp;at System.Runtime.InteropServices.Marshal.GetIDispatchForObjectNative(Object o, Boolean onlyInContext)</div><div>&nbsp; &nbsp;at System.Runtime.InteropServices.Marshal.GetIDispatchForObject(Object o)</div><div>&nbsp; &nbsp;at System.Runtime.InteropServices.DispatchWrapper..ctor(Object obj)</div><div>&nbsp; &nbsp;at System.RuntimeType.WrapArgsForInvokeCall(Object&#091;&#093; aArgs, Int32&#091;&#093; aWrapperTypes)</div><div>&nbsp; &nbsp;at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32&#091;&#093; aWrapperTypes, MessageData&amp; msgData)</div><div>&nbsp; &nbsp;at XtremeReportControl.MarkupContext.SetHandler(Object Handler)</div><div>&nbsp; &nbsp;at WindowsFormsApplication1.Form1.Form1_Load(Object sender, EventArgs e)</div></div><div><br></div><div>Coding details: C# language, Visual Studio 2010, .net framework 4.0, version of Codejock dll: 15.2.0.0.</div><div><br></div><div>Thank for your support.</div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 04 Apr 2012 03:26:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67942&amp;title=report-hyperlink-behavior#67942</guid>
  </item> 
  <item>
   <title><![CDATA[Report Hyperlink Behavior : Oleg, can I request some assistance...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67376&amp;title=report-hyperlink-behavior#67376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1401">jpcoffeyXXX</a><br /><strong>Subject:</strong> 19359<br /><strong>Posted:</strong> 10 January 2012 at 10:07am<br /><br />Oleg, can I request some assistance on the markup to serve as a temporary replacement until the code gets fixed? &nbsp; I am using the following Markup and it is not working.&nbsp; The mouse turns into a hand as the cursor hovers over the hyperlink on the report, but the procedure never fires.&nbsp; Can you tell me what I am doing wrong?&nbsp; Thank you.<br><br>Sincerely,<br><br>John<br><pre> <font color="#0000a0">Private Sub</font> GridLoad<font color="#c00000">()</font><br>     <font color="#0000a0">With</font> rptControl<br>         .EnableMarkup = <font color="#0000a0">True</font><br>         .MarkupContext.SetHandler Me<br>         .MarkupContext.SetMethod Me, <font color="#008080">"TempReportHyperClick"</font><br>     <font color="#0000a0">End With</font><br><br>      <font color="#0000a0">Set</font> rptRecord = rptControl.Records.Add<font color="#c00000">()</font><br>      <font color="#0000a0">Set</font> rptItem = rptRecord.AddItem<font color="#c00000">("My Link"</font><font color="#c00000">)</font><br>      rptItem.Caption = <font color="#008080">"&lt;TextBlock&gt;&lt;Hyperlink Click='TempReportHyperClick'&gt;"</font> &amp; "My Link" &amp; <font color="#008080">"&lt;/Hyperlink&gt;&lt;/TextBlock&gt;"</font><br>    <font color="#0000a0">  Set</font> rtpItem = <font color="#0000a0">Nothing</font>: <font color="#0000a0">set</font> rptRecord = <font color="#0000a0">Nothing</font><br> <font color="#0000a0">End Sub</font><br><br> <font color="#0000a0">Private Sub</font> TempReportHyperClick<font color="#c00000">(</font>oSender <font color="#0000a0">As Object</font>, oArgs <font color="#0000a0">As Object</font><font color="#c00000">)</font><br>   <font color="#0000a0">    MsgBox</font> <font color="#008080">"TempReportHyperClick Fires!"</font><br> <font color="#0000a0">End Sub</font><br><br></pre>        <br><br>]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 10:07:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67376&amp;title=report-hyperlink-behavior#67376</guid>
  </item> 
  <item>
   <title><![CDATA[Report Hyperlink Behavior : Thanks, will be fixed in the next...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67357&amp;title=report-hyperlink-behavior#67357</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 19359<br /><strong>Posted:</strong> 09 January 2012 at 9:58am<br /><br /><div style="margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-: initial; -: n&#111;ne; ">Thanks, will be fixed in the next release.</div>]]>
   </description>
   <pubDate>Mon, 09 Jan 2012 09:58:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67357&amp;title=report-hyperlink-behavior#67357</guid>
  </item> 
  <item>
   <title><![CDATA[Report Hyperlink Behavior : What happened to the default behavior...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67294&amp;title=report-hyperlink-behavior#67294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1401">jpcoffeyXXX</a><br /><strong>Subject:</strong> 19359<br /><strong>Posted:</strong> 28 December 2011 at 3:12pm<br /><br />What happened to the default behavior of the report control hyperlinks?&nbsp; In the past, the report control would show a blue hyperlink that would show a hand cursor when the mouse was hovered over the hyperlink.&nbsp; Now the report control just shows plain text for the hyperlink with no hand when hovered.&nbsp; I have tried the&nbsp; <i><b><a href="XtremeReportC&#111;ntrol%7EReportPaintManager%7EHyperlinkStyle.html" target="_blank">HyperlinkStyle</a></b></i> and <i><b><font color="#000000"><a href="XtremeReportC&#111;ntrol%7EReportPaintManager%7EHyperlinkHoverStyle.html" target="_blank">HyperlinkHoverStyle</a></font></b></i> objects in the Report PaintManager objects with no success.&nbsp; The links show up as plain text.&nbsp; Even in the CodeJock sample applications there are no hyperlinks that work as you would expect a hyperlink to look and work, i.e. blue text with a hand cursor when hovered over.&nbsp; They are altogether gone.<br><br>If CJ wants us to use Markup exclusively, it should let us know more directly.&nbsp; I have received no such instruction.&nbsp; Can somebody provide some guidance on this?&nbsp; Thank you.<br><br>Sincerely,<br><br>John P. Coffey<br>VB 6 Service Pack 6<br>WindowsXP Service Pack 3<br>CodeJock Controls 15.2.1<br><br><br>]]>
   </description>
   <pubDate>Wed, 28 Dec 2011 15:12:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19359&amp;PID=67294&amp;title=report-hyperlink-behavior#67294</guid>
  </item> 
 </channel>
</rss>