Discussion Locked

Printing a form using VBscript

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a form2 which gets it's data from a submit button from form1. the data are in textboxes in a table in form2.
how can i print this form2 using ASP VBSCRIPTING.
i tried one way but it just printed the table with no data or titles at all.
THANX!

7 replies

by limbo

Have you tried the PrintForm method?

i.e. Form2.PrintForm

This is an inherent VB Object method used by the Form class.

by limbo

Having only tried it in VB6, I couldn't say for sure. But it is a VB Object method so why not?

As an alternative you could check out this article:

Q238778 - OL2000: General Information About the XPrint Control and Add-in
http:// support.microsoft.com / support / kb / articles / Q238 / 7 / 78.ASP

XPrint is a MS Outlook ActiveX control which not only prints, but provides 'WYSIWYG' too. This will work, as it also uses the 'PrintForm' method in a VBScripting compatible manor.

by cedric king

You can try using "window.print()" as the OnClick event of a button on the form2 though that would print the whole window and I am not sure if that it what you wanted.

This discussion is closed to new replies.