472,958 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

System.Drawing.Printing

Can the System.Drawing.Print namespace (and it's print methods) be used in
ASP.NET ? Can we direct an output to a printer using these classes ? If not,
what is the alternative ?

Nov 18 '05 #1
3 3618
You can use any namespace with ASP.Net, and you can do anything.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"moko" <no*******************@hotmail.com> wrote in message
news:un*************@TK2MSFTNGP11.phx.gbl...
Can the System.Drawing.Print namespace (and it's print methods) be used in
ASP.NET ? Can we direct an output to a printer using these classes ? If not, what is the alternative ?

Nov 18 '05 #2
I thought "System.Drawing" used GDI+, which in turn is in the context of
Windows, not a web-browser ? Is that not so ?
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
You can use any namespace with ASP.Net, and you can do anything.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"moko" <no*******************@hotmail.com> wrote in message
news:un*************@TK2MSFTNGP11.phx.gbl...
Can the System.Drawing.Print namespace (and it's print methods) be used in ASP.NET ? Can we direct an output to a printer using these classes ? If

not,
what is the alternative ?


Nov 18 '05 #3
No, It is not so. An ASP.Net application is the same as any other
application. For example, you can use GDI+ to create images which you stream
out to a browser on the fly. In any case, the question was about printing,
which uses drawing. Now, I am nt sure that the person who asked understand
that the printing classes will only work on the server side (unless they use
a client-side .Net Windows Form), but there may be a reason why the person
wants their app to do some printing on the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"moko" <no*******************@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl...
I thought "System.Drawing" used GDI+, which in turn is in the context of
Windows, not a web-browser ? Is that not so ?
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
You can use any namespace with ASP.Net, and you can do anything.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"moko" <no*******************@hotmail.com> wrote in message
news:un*************@TK2MSFTNGP11.phx.gbl...
Can the System.Drawing.Print namespace (and it's print methods) be
used
in ASP.NET ? Can we direct an output to a printer using these classes ?
If not,
what is the alternative ?



Nov 18 '05 #4

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

Similar topics

3
by: RBisch | last post by:
I am finding that some of the properties off of the PrinterSettings object are misleading For example, When I test the CanDuplex on a printer I know duplexes, the property is false. Another one...
0
by: Brett | last post by:
I have a program that prints 2 different reports and I have 2 different printers (hp 9000, hp9050). The first report prints perfectly on both printers. The second only prints pefectly on the...
0
by: newsfan | last post by:
Hello there, I am using the System.Drawing.Printing namespace in order to get a document printed. My example works just fine when it has to print on my HP PSC 1350, but when I try to print out on...
1
by: angus | last post by:
Dear All, I knew that if i want to make some printout in window form, i can use "System.Drawing.Printing" namespace. Is it possible to use this namespace in web form in asp.net? Thank you ...
0
by: Willem | last post by:
Hi, I'm using System.Drawing.Printing to print some simple information. Private WithEvents mDoc As New PrintDocument The click event on a button has the mDoc.Print()
13
by: Metallicraft | last post by:
I have a vb6 application. On the main form is a picture box with one or two images and several pieces of text displayed in it. These are created on the fly using gdi32 routines that are all in a...
1
by: Fred Nelson | last post by:
I'm a newby and I'm writing my first VB.NET print program! I need to change the default left and right margins for my printed output "e" is my "System.Drawing.Printing.PrintPageEventArgs By...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
1
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, Is there a way ( perhaps throgh refleksion) to iterate through the colors of the System.Drawing.Color struct. foreach (Color color in .... i dont know.... regards Jesper
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.