How to get the paper feed, to set it and to obtain the list of available paper feed on a printer ?
I need to specify the paper tray number from which the paper has to be printed without putting up the print dialog box in cocoa?
Any thoughts?
Though it is an old thread. There aren't may answers about this problem on the internet.
I succeeded in making it work by setting the InputSlot key on the [printInfo printSettings] dictionary.
[[myPrintInfo printSettings] setObject:#"Tray5" forKey:#"InputSlot"]
It might or might not work for you as I don't know how printer dependent this setting is.
Related
In windows, how can a program add a custom paper size to a specific printer?
To be more specific, we want this change to be permanently visible outside that program, so that other programs can print to that paper size.
We have been able to do that by importing registry values from a file, but that requires admin access, which makes it troublesome in the company.
A solution in any language/stack will be appreciated.
With Set-PrintConfiguration only can set predefine paper, cannot add custom paper size
a bit background
I am currently using the clHighlight color together with a StyleServices.GetSystemColor call to set the background color of controls that are:
not focused
have a NULL value (field.IsNull=True)
and are about a required field (field.required=True)
Its not about how to do the highlighting itself, I figured that out already.
Currently I am using system color clHighlight, but this makes confuses my users as they think the entire contents of the field is selected (see screenshot).
But I also have style support implemented, so using a custom predefined color is not really what I am looking for. after googling a bit I found quite a list here https://learn.microsoft.com/en-us/dotnet/api/system.windows.systemcolors?view=netframework-4.7.2 but I am unable to find what I am looking for.
Using RAD studio Rio 10.3.1 Enterprise.
The actual question
So - what system color should I use? (not really looking for subjective suggestions, but for a more or less "officially recommended" constant to use.)
a screenshot
Answer: There is no more or less system color constant defined for this specific purpose.
Solution/workaround:
Thanks all for the suggestions. I decided to go for the clInfoBk constant (background color for hint windows), this looks far less confusing. One could interpret the color as a "hint" for fields that need to be filled out.
And it looks like this, in the default color scheme:
Am using GhostScript.Net 1.2.0 version. Am converting a pdf file into list of images to print. My Printed image height and width is fine but the printed image quality is poor. Please help me how to improve the image quality while converting a pdf to image using ghostscript.net
You need to either take this up with the Ghostscript.Net maintainer or find some way to tell us what command line/configuration you are using (ALL of it!), you will also need to supply an example file and define what you find objectionable in your current prints. 'image quality is poor' is extremely subjective, not helpful at all, there could be many, many reasons for 'poor quality', starting with your input file.
You also need to state what operating system you are using, and what your printing setup is. If you have tried anything already, then you need to say what you have done or we will waste much time suggesting dead ends.
Note that if you are using the mswinpr2 device, there may be little that can be done as that relies on the printer driver in the Windows system to do the actual printing.
I'm working on a Cocoa application which will be used for a digital-signage/kiosk style display. I've never done anything like this with Cocoa before, but I'm trying to figure out what the best approach is for building the user interface for it.
My main issue is that I need a way to have the user interface scaled up or down depending on the resolution of the display. When I say scaled, I mean that I want everything including white space to maintain the same sizing ratio. The aspect ratio of the interface needs to remain the same (16x9), but it should always fill the entire width of the display its on.
Sorry if I'm not being descriptive enough.
What are some thoughts?
If I follow you correctly, you want all buttons and views, etc. to get larger, the bigger the screen is (which has nothing to do with the dimensions of your views). If that's the case, there's no automatic way to do this.
With Quartz Debugger (part of Xcode Tools), you can set the scaling factor (see "resolution independence"), but this would need to be manually adjusted per system. What's more is I'm not sure if this tinge is persistent across reboots. I leave that for you to investigate.
As far as I know, though, there's no way to adjust this programmatically as resolution independence is still not an exposed consumer feature of OS X.
If anyone is interested, I seem to have found a solution under this post: http://cocoawithlove.com/2009/02/asteroids-style-game-in-coreanimation.html
how to take screenshots of palm emulator
We use HyperSnap 6 for all our screen capture needs. It's quite capable of capturing screen information inside a VMWare guest from the actual host machine and I suspect it would have little trouble with a Palm emulator as well, since it basically operates at the host level.
You can easily capture dynamic ranges (where you use the mouse/keyboard to mark top-left and bottom-right corners) as well as pre-specified ranges like "same range as last time" or "the current window" with simple key combinations (this last one is ideal for our demo and documentation purposes).
One other nice feature is the fact that it's like a mini-paint program (actually, it's a lot better than MSPaint) which allows us to highlight important bits of the image with markers and such, before saving.
Sorry to sound like an advert, but you did ask :-)
you can always take screenshots natively. orange + sym + s i believe (not sure what keys they are in emulator, but those are ones on the phone). you can then send that photo to wherever.