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
ALFKIAlfreds FutterkisteMaria AndersSales RepresentativeObere Str. 57Berlin 
ANATRAna Trujillo Emparedados y heladosAna TrujilloOwnerAvda. de la Constitución 2222México D.F. 
ANTONAntonio Moreno TaqueríaAntonio MorenoOwnerMataderos 2312México D.F. 
AROUTAround the HornThomas HardySales Representative120 Hanover Sq.London 
BERGSBerglunds snabbköpChristina BerglundOrder AdministratorBerguvsvägen 8Luleå 
BLAUSBlauer See DelikatessenHanna MoosSales RepresentativeForsterstr. 57Mannheim 
BLONPBlondel père et filsFrédérique CiteauxMarketing Manager24, place KléberStrasbourg 
BOLIDBólido Comidas preparadasMartín SommerOwnerC/ Araquil, 67Madrid 
BONAPBon app'Laurence LebihanOwner12, rue des BouchersMarseille 


Copyright 2004 - 2005 VBGold Software - All rights reserved.