Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 27th, 2004, 09:53 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Printing Client Side

New to ASP.NET.

Is there any way of doing the following:

Want to write a database Web Site (connected to SQL Server). Specifically want to have buttons on some pages which will cause a query to be executed but will output not a web page through ASP but will print a report (written using VB.Net within the web app) directly on to the client's printer.

[email protected]

kdawson
 
Old April 27th, 2004, 10:49 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I don't think you can print a page that hasn't been sent to the client first. You may be able to work around this by using another application (for example a VB client) that has an embedded invisible browser control.

Take a look at this article: http://imar.spaanjaars.com/QuickDocID.aspx?QUICKDOC=243 to find out how you print with Internet Explorer without a conformation dialog. Please note, it's an Intranet and Internet Explorer only solution. You'll also need to lower the security settings in IE.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Fire water burn by Bloodhound Gang (Track 3 from the album: One fierce beer coaster) What's This?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Two Client Side vs Server Side issues Milo Classic ASP Professional 5 May 25th, 2004 02:47 PM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.