Re: HTML Printing

"Roger Binns" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <002601c5495b$b6238580$3501a8c0@rogersqyvr14d3>
> I found out that the stock Html priting feature does not preview or 
> print the grid lines of a table.  

It works perfectly for me.  I altered resources/pbpl-view.xy so that
the very first table line had border=1 added:

<table class="table" border=1>

Then I printed the phonebook.  The print dialog, print preview and
actual printing all had the grid lines there.

> My current work-around is to preview the print data using webbrowser, 
> from which users can print tables properly.  

I'd really rather avoid the web browsers since it introduces another
dependency with more support issues and other fun things to go wrong
(we have no control over paper size, rotation and all the other fun
things to do with printing.)

Currently wxHtml does not support styles.  There is an alternate
system in place which should be used instead.  The big gotcha is
that the HTML must be perfectly formatted - ie every tag should
be closed and you can't mis-nest tags.

My preference is to continue to use wxHtml since it is used in 
several other places and we can directly embed controls and
deal with events.  The existing code that converts HTML and a
Python format stylesheet works but is somewhat arcane.

That existing HTML+Python stylesheet should be replaced with 
XML and an XML stylesheet (aka XSLT) which together will produce
good HTML, or whatever else we may desire.  It will also allow
good web designer type people to contribute.

Replacing wxHtml with another component doesn't look good either
since there is nothing consistent and cross platform (ie we
could do something platform specific on each platform, but that
will just make issues 3 times as bad.)

Roger



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.