ASP, XSL<XML, HTML

C

catchanu

Hi friends,

In my project, I am generating an asp file that collects the data by
querying database and puts it into xml document. XSL is applied to XML
and this report in generated as HTML by IE using vb scripts
CreateObject(). This is how the flow is

Generate an ASP , write query to get the data, put them into XML
document and call xsl and display it in IE. Everything works fine but
sometime I have

1. Some html files are generated empty. Though there is data to
display, html looks empty. Is this because of CDATA tag? Should I use
CDATA tag? if so where to use?

2. I am using dot matrix printer to print html files. How do I make
report print fast using font families. Currently I am using
font-family="monospace", seems like it has no effects.
please help with this.
Thanks.
CTA.
 
P

Peter Flynn

Hi friends,

In my project, I am generating an asp file that collects the data by
querying database and puts it into xml document. XSL is applied to XML
and this report in generated as HTML by IE using vb scripts
CreateObject(). This is how the flow is

Generate an ASP , write query to get the data, put them into XML
document and call xsl and display it in IE. Everything works fine but
sometime I have

1. Some html files are generated empty. Though there is data to
display, html looks empty. Is this because of CDATA tag? Should I use
CDATA tag? if so where to use?

See the FAQ, question C.27: http://www.ucc.ie/xml#usecdata
(static mirror at http://www.silmaril.ie/xml)
2. I am using dot matrix printer to print html files. How do I make
report print fast using font families. Currently I am using
font-family="monospace", seems like it has no effects.
please help with this.

Monospace makes your browser use its default monospace font, which
is probably set to a font requiring graphical printing. Try setting
your monospace font default in your browser to one of the fonts
which came with your printer driver (usually dummies to equate to
the built-in fonts of your printer, which print much faster).

If that doesn't work, open the HTML output using Mozilla Firefox, and
pick File | Save As and choose TEXT. Save the file as filename.txt
and then open a DOS window (command window), go to the directory where
you saved the file, and type PRINT /B filename.TXT (I think this still
works in XP, but it's been a long time since I had to use Windows).
This used to be a good way to bypass the graphical print queue.

///Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top