Printer Locale Support

S

Sushma

Hello All,

I want language localization support for my printer driver.
I want the page size to be changed depending on the regional settings i
select..Say, i want paper size to be A4 when i change my regional
setting to JAPANESE as in below code.

I could not figure out any changes in my printer properties. I changed
the regional settings first and then installed my driver.

Is there any thing else to be added or changed in my code?

Any suggestions in this regard would help me?

Thanks in Advance.

Regards,
Sush

Here is my INF and GPD file where i made changes.

INF File
-----------
[Win2k_OEMUNI]
[email protected]
[email protected]
CopyFiles=OEMUNI
CopyFiles=OEMUI
DataFile=oem.gpd
DataSection=UNIDRV_DATA
Include=NTPRINT.INF
Needs=LOCALE.OEM,UNIDRV.OEM,UNIDRV_DATA

GPD File
-------------
*Include: "locale.gpd"
...
...
...
*Feature: PaperSize
{
*rcNameID: =PAPER_SIZE_DISPLAY
*DefaultOption: LETTER
*Option: LETTER
{
...
...
}
*Option: A4
{
...
...
}
*Option: B5
{
...
...
}
*switch: Locale
{
*case: English_United_States
{
*DefaultOption: B5
}
*case: English_United_Kingdom
{
*DefaultOption: A4
}
*case: Arabic_Saudi_Arabia
{
*DefaultOption: B5
}
*case: Japanese
{
*DefaultOption: A4
}
*default:
{
*DefaultOption: B5
}
}
}
 

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