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

ASP.NET & Printing Web Pages

Hi

I am working on a solution for a web page that can print itself using the
browser's printing capabilitiy, but I cannot use javascript on the project.
How can I print the web page?

Thanks in advance for any help.
Nov 17 '05 #1
3 1335
Mjcast,

Your question can be interpreted a few ways. Ask it more specifically --
give a use scenario -- and I'll try to help.

-KF
"mjcast" <mj****@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
Hi

I am working on a solution for a web page that can print itself using the
browser's printing capabilitiy, but I cannot use javascript on the
project.
How can I print the web page?

Thanks in advance for any help.

Nov 17 '05 #2
Let me make sure I've got this right - you are writing a page that (after
loading) will automatically try to print itself. But you cannot use
Javascript right?

To my knowledge this cannot be done. ASP.NET is all server side, so it
cannot directly send commands to the browser. Your code would have to
generate javascript print functionality, but you can't use that. I think
you are out of luck without js.

----
Adam Clauss

"mjcast" <mj****@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
Hi

I am working on a solution for a web page that can print itself using the
browser's printing capabilitiy, but I cannot use javascript on the
project.
How can I print the web page?

Thanks in advance for any help.

Nov 17 '05 #3
I know thats what I am thinking, I just wanted to get some additional input
to this.

"Adam Clauss" wrote:
Let me make sure I've got this right - you are writing a page that (after
loading) will automatically try to print itself. But you cannot use
Javascript right?

To my knowledge this cannot be done. ASP.NET is all server side, so it
cannot directly send commands to the browser. Your code would have to
generate javascript print functionality, but you can't use that. I think
you are out of luck without js.

----
Adam Clauss

"mjcast" <mj****@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
Hi

I am working on a solution for a web page that can print itself using the
browser's printing capabilitiy, but I cannot use javascript on the
project.
How can I print the web page?

Thanks in advance for any help.


Nov 17 '05 #4

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

Similar topics

4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
9
by: Gambit | last post by:
I have had no luck in finding a good article that covers this exact issue, so here I go! I've made a Datagrid in C# within ASP.NET. So now on the client side they get a table. Now this table is...
5
by: Steven T. Hatton | last post by:
If you happen to have Accelerated C++ by Koenig and Moo, and haven't gotten around to reading it, I suggest you count the pages between page 18 and page 51. I came up with zero. This is very...
4
by: Jamey Shuemaker | last post by:
I've been looking for a way to do a duplex print job without a duplex printer. I reviewed some old posts about printing odd pages and found that most of them led to KB article 101075 or an export...
3
by: Tim | last post by:
Hi, I am creating my own method for printing. I am using PrintDocument and cycling through the data and creating new pages as neccessary. My question is, how can I know that total number of...
6
by: Bill | last post by:
Hi I am trying to get my listbox items to print if they stream past the one page mark. my code is working for one page of information (if the e.hasmorepages) is not there. But I am having...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
6
by: Greg Esres | last post by:
I have some text lines to print that are much longer than the width of the paper, maybe as much as 6 times. For a given page, I'd like everything that doesn't fit to print on a second page, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.