Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sp2 _reportlistener.vcx breaks Sp1 reports Hyperlinking
Message
 
 
To
07/11/2007 07:56:35
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:
01268158
Views:
16
This message has been marked as the solution to the initial question of the thread.
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?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform