473,806 Members | 2,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problems accessing printers over citrix

I have a vb.net app that is running over citrix, and am trying to grab
a list of printers on the user's systems, however I am getting empty
names:

'For Each sPrinterName In
PrintDocument1. PrinterSettings .InstalledPrint ers.Item(0)
'For Each sPrinterName In
PrintDocument1. PrinterSettings .InstalledPrint ers

however, I am able to see the correct number of printers:

'MsgBox(PrintDo cument1.Printer Settings.Instal ledPrinters.Cou nt.ToString
& " printers in this system")

therefore I think I am just using the wrong object path. Can someone
say what the correct way to see the printer names?

Thanks
Nov 20 '05 #1
1 2054
Have you tried something along these lines?

Dim i, NumPrinters As Integer
NumPrinters = System.Drawing. Printing.Printe rSettings.Insta lledPrinters.Co unt
For i = 0 To NumPrinters - 1
Msgbox(
System.Drawing. Printing.Printe rSettings.Insta lledPrinters.It em(i))
Next

"Mad Scientist Jr" wrote:
I have a vb.net app that is running over citrix, and am trying to grab
a list of printers on the user's systems, however I am getting empty
names:

'For Each sPrinterName In
PrintDocument1. PrinterSettings .InstalledPrint ers.Item(0)
'For Each sPrinterName In
PrintDocument1. PrinterSettings .InstalledPrint ers

however, I am able to see the correct number of printers:

'MsgBox(PrintDo cument1.Printer Settings.Instal ledPrinters.Cou nt.ToString
& " printers in this system")

therefore I think I am just using the wrong object path. Can someone
say what the correct way to see the printer names?

Thanks

Nov 21 '05 #2

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

Similar topics

0
4757
by: James Ng | last post by:
I have posted this to the Citrix Developers' forum and have not heard anything yet. So I'd like to see if any other Java developers have experience this problem with their Java application in a Citrix Published application environment. We are running Citrix XP enterprise feature release 2 on windows 2000 server sp4. We developed a Java application which can catch the "PrintScreen" key event released event correctly in our PC but could...
12
9912
by: Corey Burnett | last post by:
I have a client that has a split database (front-end/back-end). They are also using Access security - MDW file. The front end MDE file, the back end MDB file, and the MDW file are all located on a shared folder on the file server. They have two populations of users - local and remote. *ALL* users currently get to the system via a Citrix login. They log in to Citrix and get a Citrix desktop. Then they start the application via a...
16
2219
by: Wayne Aprato | last post by:
I have several Access 97 databases which are split into front end and back end running off a server. The front end mde is shared by 2 or 3 - absolute maximum of 6 concurrent users. This scenario has been working flawlessly for about 2 years. I am now at a point where these databases need to be converted to Access 2003. I think I read somewhere on this forum that the newer versions of Access are not as tolerant to multiple users...
1
1215
by: jay lavelle | last post by:
We have numerous A97 databases running on NT4.0(SP6). We now have some XP-Pro boxes with Office 2003 (approximately 7% of users). When some of the A97 databases are opened in A03 either 1.) reports print headings, text boxes and lines but no data, or 2) the Preview and Design buttons on the Reports screen of the database window do not work. There are no error messages. The reports are, of course, fine when opened in A97 on NT. Thanks.
33
3292
by: DFS | last post by:
An application I wrote has been deployed on Citrix, and the Citrix admin tells me all users run the same .mde file. There aren't a lot of concurrent users, but even 2 could be cause for concern. I think the use of globals is worrisome in this case. Anybody have any experience with Access on Citrix? (Al Kallal already griped me out about globals, but if he has anything new to add I'm all ears).
5
11295
by: Art | last post by:
Hi, We have some applications that run on a Citrix server. I would like to run one of them, a reporting app, from within a VB.net application. If I log into the Citrix server with remote desktop, I can type a command line that will do what I want. My VB.net application is not on that Citrix server. I'm afraid that if I map a drive to the Citrix box and shell out to the reporting app that I'll take it over -- that is, my use of the...
0
929
by: Gene | last post by:
How can I connect to SQL database which is residing on a Citrix server? How one does provides the Citrix credentials via code behind? Any direction is appreciated.
4
3526
by: Peter | last post by:
I have the following code which works fine in IE6 and IE7 and FireFox, but when I run IE6 on Citrix I get "The page cannot be displayed" in the iframe. We don't have IE7 on Citrix so I can't try it. <span id="ShowReport" disabled="disabled" style="display:inline-block;height:1200px;width:880px;"> <div> <iframe src=../../WsiLogo.gif<frame src=../../WsiLogo.gif> <embed src=../../WsiLogo.gif</iframe> </div>
12
2100
by: =?Utf-8?B?QXJ0?= | last post by:
Hi, I'm putting together an application in vb.net. I will ultimately need people to be able to run it from home (Normally we're in one office). I can store it on a file server, but this raises the problem of a home user needing the .net framework. I seem to have 2 choices, and have no experience in either. First, since we use Citrix here, I could publish it as a Citrix application.
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10624
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9193
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.