473,797 Members | 3,144 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2571
"Matthew" <th*******@yaho o.com> wrote in message
news:d4******** *************** **@posting.goog le.com...
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
7889
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 Word, as I'm far more comfortable with hand-coding HTML and CSS(though I've never used the print-specific CSS elements).
131
21692
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 get some good real world examples. Fire away! :) Regards, Peter Foti
2
2320
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 report that fits with each label type, and reads a table dinamically generated. But the problem is page margins. Does Access store page margins and information of that kind within de report? Is there any kind of association between printer...
14
2736
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 push_back, the object I had in hand was getting copied (twice, in fact). That led to a problem, in that my object contained a "handle" to another object, and when the object being pushed went out of scope and was destroyed, the referenced object was...
1
3080
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 that code raises the exception "NO PRINTERS INSTALLED" OR " HANDLE IS INVALID". can u hepl me ?? Thanks in advance. Regards, Abhijeet.
7
1745
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 have different CSS for printing than for screens, which of these two options is the best approach? 1. Have a single CSS for each media, then use different <link> tags for each media? 2. Have one CSS that includes all rules and use @media rules to...
24
2875
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 abilities by writing my own nice editor with python; so I've to choose among all those GUI toolkit's available there.. But I've no idea which one I should use to start with.. I've read that tkinter seems to be the de facto standart in the pyhon...
2
596
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 textboxes containing bill's datas. (I already replaced the labels by painting the text instead.) When I click on my filter button, it clears the current usercontrol bills and load the new ones upon the current chosen filters. The bug happens when
0
2251
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 application specific headers are to be added in the print out. Problem: The System.Drawing.Printing namespace .Net provides objects and dialogs to take care of basic print tasks. But there is no native support of printing RTF and HTML formats. One would...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.