VBGold ASP Printer Examples
Print HTML Document From Source Code Example
This example shows you how you can print the output of HTML source code exactly as you see it in your web browser (WYSIWYG - What You See Is What You Get), using just a single line of code!
The printing will use all the formatting (fonts, colors, backgrounds, margines, etc.) specified in the HTML code that will be passed to the ASP Printer component. Also, any images that are referenced in the HTML code will be printed as they appear on the page when viewed in a web browser.
Remember that the output of the HTML code is printed on the web server. Therefore, the image paths must be valid paths on the server file system.
We will use the HTML source code of the table below in our printing.
Customer ID
Company Name
Contact Name
Contact Title
Address
City
Region
ALFKI
Alfreds Futterkiste
Maria Anders
Sales Representative
Obere Str. 57
Berlin
ANATR
Ana Trujillo Emparedados y helados
Ana Trujillo
Owner
Avda. de la Constitución 2222
México D.F.
ANTON
Antonio Moreno Taquería
Antonio Moreno
Owner
Mataderos 2312
México D.F.
AROUT
Around the Horn
Thomas Hardy
Sales Representative
120 Hanover Sq.
London
BERGS
Berglunds snabbköp
Christina Berglund
Order Administrator
Berguvsvägen 8
Luleå
BLAUS
Blauer See Delikatessen
Hanna Moos
Sales Representative
Forsterstr. 57
Mannheim
BLONP
Blondel père et fils
Frédérique Citeaux
Marketing Manager
24, place Kléber
Strasbourg
BOLID
Bólido Comidas preparadas
Martín Sommer
Owner
C/ Araquil, 67
Madrid
BONAP
Bon app'
Laurence Lebihan
Owner
12, rue des Bouchers
Marseille
Copyright 2004 - 2005
VBGold Software
- All rights reserved.