Printer Problem?

G

Guest

Hi All,

I am trying to solve a problem relating to one of the business application
running on our company business.This is the main application we use for our
day-to-day business.We are printing various paper size such as label
printer,A4 size(General printer) and A3 on the same application for our
different business purposes by using different printer.But the main problem
is if you set Label as the default printer you can print the label using the
label set up(101.6mm * 76.2 mm) but when we want to print the A4 size paper
we have to change manually all the set up even you change the printer as
General printer it keeps the default set up which is for Label Printer.We
have to open the printer set up on the application>change the settings
General Printer>Tray 2> Landsacpe etc for printing A4.

But I need some light on dynamically setting up the printer set up when you
choose the printer as Genral Printer from the Printer Set up of the
application.
Thanks in advance
mil
 
B

Bob I

Easiest way to solve it is to create a printer install for each paper
configuration you want to use and set it up that way. Please remember
that when an application is first opened you will find it is
"restricted" to the largest paper size of the "default printer".
 
G

Guest

Hi Bob,

Can we change any setting on the Registry for printers to dynamically set
the printer configurations..

thanks in advance
 
B

Bob I

I don't understand "printers to dynamically set the printer
configurations". Printers are hardware. "Personal preferences" settings
for each "printer instance"(or install) are what will be used when that
printer is selected for use.
 
G

Guest

Hi Bob,

I understand the printer are hardwares but when you run this business
critical application xyz.exe in our comapny we set up printers according to
the various functions like Label Printer,General printer(default) and Invoice
printer.But whenever we want to print a label after printing a A4 size even
if we change the printer from Genral Printer to Label Printer on the printer
set up on the application(File->Printer Set up) the settings are not changing
for A4 size to the Label Printer(Letter Head) size.
Settings are still remains the same as A4 --Portarit-- copy-->1.
But we want the set up to be Letterhead--->Portrait(180 degree)-->101.6mm *
76.2 mm.I want to know why even if I change the printer from Genral printer
to Label printer still the settings for A4 stays there ?I know there is some
way around but I cannot find one.
Please give me some advice I really appreciate it.

thanks in adavnce

:


....................................................
 
A

alanglloyd

When I wanted to change this sort of printer property I used
DocumentProperties API which uses a DevMode structure to specify the
values. The settings for this structure are fairly complex and so you
need to look in MSDN (Microsoft Developer Network either the library CD
or on the MS web-site) to see the definition of the DevMode fields. For
Delphi 3 also the DocumentProperties API call is not declared, and so
one has to do that in your program. I satisfactorily set the printer
bin and size with these techniques.

If you want more specific information and snippets of my code, I
suggest you email me.

Alan Lloyd
 
B

Bob I

Because you opened the application with the general printer and it's
preferences set as the default. Switch default printers and then open
the application and it will be as you wish, or perhaps the post by Alan
and his programing code will help you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top