Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sp2 _reportlistener.vcx breaks Sp1 reports Hyperlinking
Message
From
11/11/2007 21:38:37
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Miscellaneous
Thread ID:
01267229
Message ID:
01268420
Views:
15
Hi Sergy

As usual you have come through with the correct solution. In my testing, this code you have below works with the FFC class of VFP9 SP2 with one exception:
This line:
<xsl:when test="string-length(@href) > 0">
needs to be changed to this:
<xsl:when test="string-length(@href) &gt; 0">
 So use &gt; instead of the greater than sign  >
Thank you immensely for this solution which I would never have found in a thousand years.

Bernard

>Hi Bernard,
>
>The default XSLT used by HTMLListener in SP2 is missing a piece that adds an anchor tag to the HTML if there's an HREF attribute. To fix the problem, add missing translation in the GetDefaultUserXSLTAsString method of HTMLListener class
>
><!--------- Add this --------- -->
><xsl:when test="string-length(@href) > 0">
>  <A href="{@href}">
>  <xsl:call-template name="replaceText"/>
>  </A>
></xsl:when>
>
><!-------------- Before this  ---------- -->
>            <xsl:otherwise>
>              <xsl:call-template name="replaceText"/>
>            </xsl:otherwise>
>          </xsl:choose>
>
>
>>Changes to the code in FFC\_reportlistener.vcx breaks SP1 reports
>>
>>Doug Henning did an excellent article - http://msdn2.microsoft.com/en-us/library/ms947688.aspx about Hyperlinking Reports. I have implemented this in a number of reports. With the SP2 version of _reportlistener.vcx class there are no Hyperlinks appearing in the reports. Yet with the SP1 version of the same class and the same code everything still works perfectly.
>>
>>This is the second difference I know of that has broken working Sp1 code.
>>
>>Does anyone know of a fix for this?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform