473,507 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing any webform from server.

Hi,
I need to build a server-side print system for any of my webform.
I "just" need to print text, keep position (table,<tr>,<td>, etc) and
replace controls with text.

As it will be extended to all the asp.net applications of my company,
I'm tryin to build a generic stuff.
I've been struggling with that for days until starting to work with
xsl.

I'm currently working from the html my webforms return.
HTML + XSL => XHTML
XHTML + XSL => XSL:FO

XSL:FO => PDF (using NFOP)
Send file to printer.

My question is : Am I right doing this way ? It's kind of a complex way
of sending html to printer.
By the way, as it will soon be necessary to send result by email
instead of printing it, I think I'm not doin wrong using xsl and pdf
generation.

THks for your help.

Jan 15 '06 #1
1 1172
We are using ghostscript and a postscript printerdriver:

http://www.hellobasic.com/cgi-bin/fo...num=1134897582

So use a shellexecute() API to "print" (not "open") to print the html to
PDF.
It should work.
"Franck" <we**********@gmail.com> schreef in bericht
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,
I need to build a server-side print system for any of my webform.
I "just" need to print text, keep position (table,<tr>,<td>, etc) and
replace controls with text.

As it will be extended to all the asp.net applications of my company,
I'm tryin to build a generic stuff.
I've been struggling with that for days until starting to work with
xsl.

I'm currently working from the html my webforms return.
HTML + XSL => XHTML
XHTML + XSL => XSL:FO

XSL:FO => PDF (using NFOP)
Send file to printer.

My question is : Am I right doing this way ? It's kind of a complex way
of sending html to printer.
By the way, as it will soon be necessary to send result by email
instead of printing it, I think I'm not doin wrong using xsl and pdf
generation.

THks for your help.

Jan 16 '06 #2

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

Similar topics

3
2272
by: Bryan Z | last post by:
I was wondering how do you print just part of a webform in asp.net -- like just printing the contents of a textbox or label. I know that it will involve javascript, but I cannot get the javascript...
13
2059
by: Nikolay Seksenov | last post by:
Does anybody has an experince printing from the web server using System.Drawing.Printing.PrintDocument object in dotNet web app? It works fine in windows apps but fails in web apps. Any...
3
346
by: Bryan Z | last post by:
I was wondering how do you print just part of a webform in asp.net -- like just printing the contents of a textbox or label. I know that it will involve javascript, but I cannot get the javascript...
3
1479
by: Franck | last post by:
Hi, Is it possible to extract all controls from a webform and print them ? I'm currently trying to use a viewstate system but can't figure out how to retrieve control position. Thks for help.
0
7223
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,...
0
7377
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...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3191
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
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...

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.