473,698 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble Programmaticall y Printing Color Docs in B&W

I'm printing to a DeskJet 5550 printer. From WordPerfect, if I have a color
document and I specify grayscale in the printer properties dialog, it prints
in grayscale as expected.

However, from a VB.NET application, I don't seem to be able to get it to
print in black and white / grayscale. It always prints in color. I have a
3rd party DLL called QuickPDF which works with PDF documents. It enables
you to specify monochrome or color as well as all the other usual options
for printing. I select monochrome, but it prints in color.

I just figured there was something wrong with QuickPDF, so and I tried
transferring the image to a MemoryStream and printing it using a
PrintDocument object in VB.NET, after setting Color = False in the
PrinterSettings , DefaultPrinterS ettings, and PageSettings objects. However,
it still prints in color, even with the default setting in Windows control
panel for that printer already specifying grayscale and that only the B&W
cartridge should be used.

Do HP DeskJet printers use a different protocol for specifying non-color
printing? What could be the cause / solution to enable programmaticall y
print color documents in black and white / grayscale? Thanks.
Nov 21 '05 #1
0 1381

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

Similar topics

12
3310
by: Bill | last post by:
For my personal use I am accessing a railway timetable page, parsing its contents and then sending brief relevant information as the subject line of an email to be read on a mobile phone. The problem comes when I try to parse a second page, the url of which, I have derived from an initial page. I cannot go directly to the second (target) page but from the initial page derive the url and put it in a string called $strTarget In one...
5
2217
by: Dave D | last post by:
Is there an easy way to send a "Hello World" to the printer??? -- Dave
14
7871
by: Steven T. Hatton | last post by:
I'm trying to write a program like hexel. I guess I could fish out the source for hexel and look at that, but for now I'm trying to figure out how I can do with with std::stringstream and std::string. I had something working with std::string. I simply treated it as an STL container, and iterated over its elements. The results were a bit confusing to me. Some of the stuff was printing out as 1 or 2 characters hex numbers, as I...
0
1238
by: Phil Galey | last post by:
I have a VB.NET application running on Windows 2000 Pro. I have a DeskJet 5550 printer, with the Windows default setup specifying to print in grayscale. From a 3rd-Party DLL called QuickPDF, I specified monochrome and print the document. It ignores the monochrome flag and prints in color, so I figured QuickPDF needs to go back to the drawing board. But then I tried transferring the document into a MemoryStream and printing it using...
3
13915
by: David Cho | last post by:
I am still struggling with this. Used the PrintDocument class, but it was printing gobblygook. Does not recognize the PDF files as Acrobat files and just prints text. Can't get the shell command to work. Tryed print C:\test.pdf
9
3123
by: Dr. Locke Z2A | last post by:
So I'm writing a bot in python that will be able to do all kinds of weird shit. One of those weird shit is the ability to translate text from one language to another, which I figured I'd use google translate to do. Here is the section for translation that I'm having trouble with: elif(line=="translate"): #if user inputs translate text="" for i in range(abuindex+2, len(line)): #concantenate all
3
2193
by: Pappy | last post by:
SHORT VERSION: Python File B changes sys.stdout to a file so all 'prints' are written to the file. Python file A launches python file B with os.popen("./B 2>&^1 >dev/null &"). Python B's output disappears into never-never land. LONG VERSION: I am working on a site that can kick off large-scale simulations. It will write the output to an html file and a link will be emailed to the user. Also, the site will continue to display...
8
9002
by: Frank Rizzo | last post by:
I am trying to print huge images (much bigger than target paper). I try and use e.PageSettings.HardMarginX and e.PageSettings.HardMarginY in the PrintDocument's PrintPage event to try and determine the maximum area that I can print on. However, the edge of the image invariably gets cut off, as if the HardMargin info is wrong. I posted the code below as I can't understand what I am doing wrong. Is information in e.PageSettings reliable?...
2
3608
n8kindt
by: n8kindt | last post by:
i'm having problems with 1) putting a url into xml using php and once it is in a url 2) parsing it as a hyperlink... i've tried using &amp; and = to parse the url but i keep getting the 'XML Parsing Error: not well-formed' which points to the &amp; and = signs. or if i'm using <!CDATA it will point to the '<!CDATA'... if i just try using a simple url (say 'www.google.com') it parses but it won't display as a hyperlink although by looking at...
0
8680
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
9169
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
9030
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
8899
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
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7738
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...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.