473,320 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Best way to handle printing of HTML in .NET?

My Windows forms app generates HTML via a server-side XSL
transformation of XML out of a SQL server stored procedure. I'm
emedding the HTMLEditor control from
http://www.itwriting.com/htmleditor/index.php, and using a custom
print template.

The app by the way is for a homogenous intranet environment, printing
to a variety of different printers.

Generally this works tolerably, although it is pretty hard work
getting the print templates to work (basically I'm just using example
six from the samples in
http://msdn.microsoft.com/library/de...reference.asp).

One problem I have now is that I need my app to print three identical
copies of a particular document with different backgrounds
(watermarks) on each, and I am not having too much luck.

I'm interested in guidance as to whether I would be better off using
either:

Meadco's scriptx product
http://www.meadroid.com/scriptx/about.asp
or
http://www.htmlprinting.com/

Would I be able to dispense with the HtmlEditor component? Would I get
performance improvements or better ease-of-use? And would they even be
able to handle my specific issue of three pages with different styles
on each?

Or can I get consitent appearance and what I want to do by sticking
with the basic print templates.
Nov 15 '05 #1
1 2555
"Matthew" <th*******@yahoo.com> wrote in message
news:d4*************************@posting.google.co m...
My Windows forms app generates HTML via a server-side XSL
transformation of XML out of a SQL server stored procedure. I'm
emedding the HTMLEditor control from
http://www.itwriting.com/htmleditor/index.php, and using a custom
print template. Would I be able to dispense with the HtmlEditor component? Would I get
performance improvements or better ease-of-use? And would they even be
able to handle my specific issue of three pages with different styles
on each?


As I read it, the sites you've referenced still depend on the print template
functionality to work. So you still need IE (in some shape or form), and you
still have the limitations of print templates.

If your main target is print, I wonder if you should transform your XML to
PDF rather than HTML? Adobe has a bunch of products for this. Also, a quick
Google brings up http://xmlpdf.com/ and http://antennahouse.com/. Finally
there are some open source projects using xsl-fo.

Tim
Borland's top execs interviewed:
http://www.itwriting.com/borlandtop.php
Tim
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Laurens | last post by:
Hi, Which browser has the best CSS paged media support? I'm about to write a business plan, which needs to be printed on paper to be presented to the bank. Now I cringe at doing this in...
131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
2
by: Luis Serrano | last post by:
Hi all, I'm trying to generate labels to print in several different formats, all of them with their own height,width and page margins. We've got this done in MS Access 2000, using a designed...
14
by: Howard | last post by:
Hi, I recently had a problem where I decided to store objects in a vector. (Previously, I had always stored pointers in vectors). Well, naturally, when storing an object in a vector, using...
1
by: Abhijeet Nevaskar via .NET 247 | last post by:
Hi , I have very serious problem about printing and i have almost searched the printing section for simillar kind of problem.PrintPreview dialog shows preview of few pages quite well and after...
7
by: Rhino | last post by:
I thought I'd take a second to step away from a specific problem and ask a general question about best practices; I know some of the people here are very experienced with CSS. Given the need to...
24
by: invitro81 | last post by:
Hello I've recently learnt python and I do love it! I congratulate all those geeks who produce this nice language; well, because I could be called a nearby newbee I've decided to improve my...
2
by: Jonathan Boivin | last post by:
Hi people, Let me introduce to how I get this error. I have a form which load all my bills representation depending upon filters which each bill is a usercontrol of my own having some...
0
by: nikhilgargi | last post by:
Requirement: I need to provide printing capability in a C# desktop application that I am developing The documents that need to be printed can be in Rich Text Format (RTF) or HTML. Custom...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.