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

Name of the standard printer

Hello,

in a .NET program I want to print, using a Standard C++ Library object.

I have the following code, assuming the name of the printer is
\\EDV_SERVER\EK-HPLJ5000N_PS

ofstream printStream;
printStream.open("\\\\EDV_SERVER\\EK-HPLJ5000N_PS",ios_base::out);
printStream << "Test Test Test" << ends;
This works fine, but how can I get the name of the printer, defined as
standard in the operating system?
I use W2k.

Michael Geier

Nov 17 '05 #1
0 747

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

Similar topics

1
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition 1.0 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the first release of a fully-managed reporting tool for the...
0
by: TEJ-10689 | last post by:
Does anyone know how to print to a printer given only the printer's share name (not the device name/printer name that everything in System.drawing.printing uses)? Thanks!
3
by: 2D Rick | last post by:
I have multiple reports that use a "specific printer" because the default printer is tied up doing other chores. This is a machine shop environment using Dells' running Win2000 and XP with...
3
by: Rene | last post by:
We are moving from VB6 to C# and we like to know a good approach in .NET / C# for this: In VB6 we have some objects (classes) with the same interface, i.e. a to control specific printers. Based...
1
by: MichaelGeier | last post by:
Hello, in a .NET program I want to print, using a Standard C++ Library object. I have the following code, assuming the name of the printer is \\EDV_SERVER\EK-HPLJ5000N_PS ofstream...
1
by: Boris Bulit | last post by:
I need to get the printer driver and port name in vb.net. I know how to get Printer Name of any printer on my system using the PrinterSettings class but I am unable to find how to get the port...
3
by: ripal.soni | last post by:
To Print file on your selected printer instead of default printer you can write the following code also you can find the complete solution in...
0
by: JedTheHead | last post by:
Windows 2003 R2 SE, SP2. I am using the code below in a VBScript to create printers on a remote printer server, CMC-PRN. The code works flawlessly and creates the port and the printer just fine,...
10
by: bhughes2187 | last post by:
Hey all, The access app I am creating, pulls a .dbf file into a table in access. The name of the printer to be printed to is contained in that file/table. How would I cycle through the list of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...

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.