473,395 Members | 1,692 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,395 software developers and data experts.

Print HTML string

Hi,

I have a string containing an HTML formatted report.

I want to print the interpreted "Website" defined by this string. How can I
acheive this?

Regards Alexander
Nov 17 '05 #1
3 4807
Hi,

You create a page and put lable on the page and assign your html string to
that lables text. And print that page. that will print formatted html string

Thanks
Sameer
"Alexander Wehrli" wrote:
Hi,

I have a string containing an HTML formatted report.

I want to print the interpreted "Website" defined by this string. How can I
acheive this?

Regards Alexander

Nov 17 '05 #2
Yea, but how can I programmatically set the printing options and print this
document?

"Sameer Chandargi" wrote:
Hi,

You create a page and put lable on the page and assign your html string to
that lables text. And print that page. that will print formatted html string

Thanks
Sameer
"Alexander Wehrli" wrote:
Hi,

I have a string containing an HTML formatted report.

I want to print the interpreted "Website" defined by this string. How can I
acheive this?

Regards Alexander

Nov 17 '05 #3
Hi Alexander,

Are you using Windows.Forms or ASP.NET?

For Windows.Forms see this article:
http://www.codeproject.com/csharp/webbrowser.asp

For ASP.NET there's no control over printer formatting other than CSS
styles.

Luck, Wiebe

Alexander Wehrli wrote:
Yea, but how can I programmatically set the printing options and print this
document?

"Sameer Chandargi" wrote:

Hi,

You create a page and put lable on the page and assign your html string to
that lables text. And print that page. that will print formatted html string

Thanks
Sameer
"Alexander Wehrli" wrote:

Hi,

I have a string containing an HTML formatted report.

I want to print the interpreted "Website" defined by this string. How can I
acheive this?

Regards Alexander

Nov 17 '05 #4

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

Similar topics

6
by: Ruchika | last post by:
Hi, I am new to Python, so this may be a very simple question for most of you. What does the % operator stand for in Python? I came across a script that uses the % operator as follows - def...
14
by: Marcin Ciura | last post by:
Here is a pre-PEP about print that I wrote recently. Please let me know what is the community's opinion on it. Cheers, Marcin PEP: XXX Title: Print Without Intervening Space Version:...
16
by: John Baker | last post by:
HI; I feel like a fool..I put CUTE FTP in my last request for help --it should have been CUTE PDF! I have FTP on my mind because I have been working on a web based application, and somehow my...
3
by: James J. Besemer | last post by:
I would like to champion a proposed enhancement to Python. I describe the basic idea below, in order to gage community interest. Right now, it's only an idea, and I'm sure there's room for...
0
by: thirunavukarasukm | last post by:
Hai.... To print Html page using PrintDialog and Print Document i am created one windows appication.. the windows application have many pages in my booking page i have two buttons one...
2
by: Artie | last post by:
Hi, I've searched the web but can't find a solution to an apparently really simple problem. My app contains an HTML string and I need to be able to invoke the Print Dialog to print the HTML...
5
by: kuratkull | last post by:
Hello, *************** import urllib2 import re import string import sys url = "http://www.macgyver.com/" request = urllib2.Request(url)
0
by: Andrew Meador | last post by:
I have implemented a printing scenario where an html file is printed using the the following code: public void PrintHtmlFile(string url) { RegistryKey IERegKey; string header = null; string...
3
by: rajkumarpb | last post by:
Hi friends, I am new to this forum...But not for programming...I want a Print CSS File to be added in my page..OK.... Here is the page and i want you friends to help me create the CSS File...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.