473,400 Members | 2,163 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,400 software developers and data experts.

How could I print rendered HMTL?

I have a string object filled with HTML text. I would like to have the text
rendered and printed out onto paper. Any ideas on how to do this?

Is there maybe a way to get this text into a TextArea that is configured to
render HTML and then print it's contents to paper?
May 30 '06 #1
2 1360
MrNobody,

What you could do is save the string to a file. Then, you can call
MSHTML through rundll32.exe in order to print the contents of the file
(assuming it is HTML). For more information, check this link out.

http://sastools.com/b2/post/79393894

To do this in .NET, you would have to start a new process instance
(using the Process class) and then pass the command line through there.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"MrNobody" <Mr******@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
I have a string object filled with HTML text. I would like to have the text
rendered and printed out onto paper. Any ideas on how to do this?

Is there maybe a way to get this text into a TextArea that is configured
to
render HTML and then print it's contents to paper?

May 30 '06 #2
ah, excellent idea! Thanks for the link

"Nicholas Paldino [.NET/C# MVP]" wrote:
MrNobody,

What you could do is save the string to a file. Then, you can call
MSHTML through rundll32.exe in order to print the contents of the file
(assuming it is HTML). For more information, check this link out.

http://sastools.com/b2/post/79393894

To do this in .NET, you would have to start a new process instance
(using the Process class) and then pass the command line through there.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"MrNobody" <Mr******@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
I have a string object filled with HTML text. I would like to have the text
rendered and printed out onto paper. Any ideas on how to do this?

Is there maybe a way to get this text into a TextArea that is configured
to
render HTML and then print it's contents to paper?


May 30 '06 #3

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

Similar topics

1
by: Robin Dindayal | last post by:
Does anyone know how I can print a fully rendered .aspx to the server's printer? I know that, if I wanted to print to the client's printer it would be easy (ie. use javascript's window.print()). ...
0
by: Kathy Burke | last post by:
Hi, just throwing this out there. I create an HMTL page (transformed with xsl in asp.net) using an xml source document. I end up with a series of tables (e.g., one for each main element, with...
4
by: Matt Mercer | last post by:
Hi, I have a asp .net/VB web app that does the typical submitting and retrieving from a SQL database. I am lost as to how I should create a print friendly page for the data. Here is the...
2
by: Rob | last post by:
I have a webform that uses the TabStrip and MultiPage webcontrols. I also have a Print button on the form to print all of the information of the webform (all tabs): <input type="button"...
0
by: Kresten Buch | last post by:
Hi, I have a central webapplication with lots of clients connected to it over the internet, and some of theese clients has to do a lot of printing. This is where the fun begins. One client...
24
by: Rhino | last post by:
I am dabbling with print CSS for the first time and I need some guidance. The web pages on my site look fine - to my untrained eye - when displayed on the monitor in any of the standard browsers....
3
by: jnm | last post by:
How can I avoid the content of <meta name="Microsoft Border" content="b, default"> is printed, when printing by means of <link rel="stylesheet" href="../print.css" type="text/css"...
5
by: Ben | last post by:
Hi All, I have a form which requires input, has conditional server side validations and print functionality. There is a print button which does client side validation & then custom validation, if...
1
by: tdartt | last post by:
Howdy! I'm fairly new to using css. I have two style sheets: <LINK href="printstyle.css" type="text/css" rel="stylesheet" media="print"> Which has (for example): .dgAltLine { display: none;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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
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...

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.