Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing VFP9 HTML Output
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00972248
Message ID:
00984270
Vues:
41
This message has been marked as a message which has helped to the initial question of the thread.

The reports that I was trying to merge were generated at different times (actually by different applications) and I was trying to do this:


O, IC. That would never work. For one thing, each emitted HTML document has its own HTML node with its own separate HEAD and BODY elements. This simply is not allowed by at least some versions of the HTML standard <s>.

In that case. to put them together using the default mechanism, you could generate the XML rather than the HTML (use the XMLDisplayListener subclass, it will turn on all the right options for you but not apply the transform) and then add all the resulting VFP-Report nodes under one root, THEN apply the transform as a final step.

It would be pretty easy to change the XSLT simply NOT to emit the HTML, HEAD, and BODY elements, however. Then, at runtime, you could do this as you suggested, something like this:
<html>
<head><title>My Combined Report Header</title><head>
<body>
<?php include("nContractListing.htm"); ?>
<?php include("rContractListing.htm"); ?>
</body>
</html>
... this would be very straightforward to do.

The default XSLT is, admittedly, complex <s>, but this modification is *not* complex. All you need to do is omit the embracing html tag and the head element -- replace the embracing body tag with a div tag if you like, although it may not be necessary.

>L<
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform