473,396 Members | 1,892 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.

Getting a users default printer

Hi

We have a ASP.net app which calls into a web service which allow users to
print stuff. At the moment they have to specify the printer. Apparently
this is too much for our users, so I was wondering if there's a way of
getting the default printer from their user profile?

TIA

Glenn
Apr 26 '07 #1
5 1987
Are you saying that you want a remote application to make a call to the
client's default printer and print something on it? That would be a Security
nightmare.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Glenn" <gl**********@yahoo.co.ukwrote in message
news:el****************@TK2MSFTNGP05.phx.gbl...
Hi

We have a ASP.net app which calls into a web service which allow users to
print stuff. At the moment they have to specify the printer. Apparently
this is too much for our users, so I was wondering if there's a way of
getting the default printer from their user profile?

TIA

Glenn


Apr 26 '07 #2
Kevin

Your right of course, but in this case the application server and clients
all reside within a single domain and are authenticated by the application.

Thanks

Glenn

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:e1**************@TK2MSFTNGP03.phx.gbl...
Are you saying that you want a remote application to make a call to the
client's default printer and print something on it? That would be a
Security nightmare.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Glenn" <gl**********@yahoo.co.ukwrote in message
news:el****************@TK2MSFTNGP05.phx.gbl...
>Hi

We have a ASP.net app which calls into a web service which allow users to
print stuff. At the moment they have to specify the printer.
Apparently this is too much for our users, so I was wondering if there's
a way of getting the default printer from their user profile?

TIA

Glenn



Apr 26 '07 #3
I meant "You're"

"Glenn" <gl**********@yahoo.co.ukwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Kevin

Your right of course, but in this case the application server and clients
all reside within a single domain and are authenticated by the
application.

Thanks

Glenn

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:e1**************@TK2MSFTNGP03.phx.gbl...
>Are you saying that you want a remote application to make a call to the
client's default printer and print something on it? That would be a
Security nightmare.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Glenn" <gl**********@yahoo.co.ukwrote in message
news:el****************@TK2MSFTNGP05.phx.gbl...
>>Hi

We have a ASP.net app which calls into a web service which allow users
to print stuff. At the moment they have to specify the printer.
Apparently this is too much for our users, so I was wondering if there's
a way of getting the default printer from their user profile?

TIA

Glenn




Apr 26 '07 #4
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:OT**************@TK2MSFTNGP05.phx.gbl...
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Kevin

Your right of course, but in this case the application server and clients
all reside within a single domain and are authenticated by the
application.
When you talk of a 'single domain', I'm assuming you mean a corporate
intranet...?

If so, you *might* be able to write an ActiveX control which would need to
run on each client machine - however, you'd have to seriously ramp down your
security just to even get it to download and install, never mind run...

Apr 26 '07 #5
Mark

Yep, it's an intranet app and the ActiveX idea is a no go because of group
policy.

I had a feeling it wasn't meant to be.

Thanks anyway.

Glenn

"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:Ol**************@TK2MSFTNGP05.phx.gbl...
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:OT**************@TK2MSFTNGP05.phx.gbl...
>"Glenn" <gl**********@yahoo.co.ukwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>Kevin

Your right of course, but in this case the application server and
clients all reside within a single domain and are authenticated by the
application.

When you talk of a 'single domain', I'm assuming you mean a corporate
intranet...?

If so, you *might* be able to write an ActiveX control which would need to
run on each client machine - however, you'd have to seriously ramp down
your security just to even get it to download and install, never mind
run...

Apr 26 '07 #6

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

Similar topics

1
by: Pablo | last post by:
Friends, how can i get the name of the default printer??. I'm working with winforms. VB,C#, nevermind. Thanks a lot Pablo
3
by: Geraldine Hobley | last post by:
Hello, How would you get and set the current default printer by using the system.drawing.printing class or any other class. Regards Geri
1
by: Geraldine Hobley | last post by:
Hello, I have the following code that sets the default printer using the WMI (windows management system). ' Add a Reference to System.Management Dim moReturn As...
3
by: Panos | last post by:
Hi, is there a way that i could get the default printer of the system? I'm using VB.net 2001. There is a function in SDK called "GetDefaultPrinter", but i don't understand how to use it.
0
by: Karthick_Microsoft | last post by:
Actually, in my ASP.Net application, i have a requirement of automatically changing the default printer. I did a OCX using VB and put it on the web page. The client machines do not have local...
1
by: sathyp | last post by:
Public Function SetPrinterDefaultsW(ByVal sPrinterName As String, _ ByVal nPaperSize As Long, ByVal nOrientation As Long) As Boolean Dim Prn As Printer Dim hPrinter As Long Dim pd As...
0
by: nevlek | last post by:
My boss one day ask if I can create a web site in intranet to let user install printer as well as set it as default themselves without IT's help. I have done some research and brain storming with...
13
by: Mark Rae | last post by:
Hi, I have used the code below to return the default printer in 32-bit WinXP Pro, but now that I am running 64-bit Vista Business I'm getting an error: using System.Drawing.Printing; using...
3
by: evenlater | last post by:
I have an Access application on a terminal server. Sometimes my users need to export reports to pdf, rtf or xls files and save them to their own client device hard drives. They can do that right...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.