Link to home
Start Free TrialLog in
Avatar of gjgerson74
gjgerson74

asked on

Custom Form Registry Entries

I have 24 print servers that each have a custom form called AirTranXP.  In looking at the registry values for these custom forms, I have noticed that they all don't match, some do but most don't.  The problem is that I have an Access application that uses this form and in cases where the registry value differs from the one below, the report doesn't print properly.  I have been back and forth 10,000 different ways in Access and with Access expersts, and I am 100% convinenced that if I can change the registry values for all 24 print servers to match the one below that I will not have any more problems.  When using custom forms in Access, Access uses the PrtDevMode properties and a 16 character string called FormName to identify the form to use.  Access doesn't use the actual form name, but the data value in the registry key for the form.  The position in the registry key that differs indicates the order in which the form was created in relation to the other forms.    


Here is the correct value:
5c,4b,03,00,5c,4b,03,00,00,00,00,00,00,00,00,00,5c,4b,03,00,5c,4b,03,00,0f,00,00,00,00,00,00,00

Every server (8 of the 24) that has this value works properly, the rest of the servers do not print properly unless I go in and manually change the page setttings for the Access reports.

Every single server is exctally the same, Server 2003 SP1, configured with the same custom form named AirTranXP.

Here are some of the other registry values from servers that don't print properly:
5c,4b,03,00,5c,4b,03,00,00,00,00,00,00,00,00,00,5c,4b,03,00,5c,4b,03,00,0b,00,00,00,00,00,00,00
5c,4b,03,00,5c,4b,03,00,00,00,00,00,00,00,00,00,5c,4b,03,00,5c,4b,03,00,13,00,00,00,00,00,00,00

Registry value is found in:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Forms

How can I go about changing the registry values and making them stick?
Avatar of TheCleaner
TheCleaner
Flag of United States of America image

Making them stick is problematic...maybe setting the regkey to read-only but you may find problems with that.

For changing the value, the simplest way would be manually, or you can use Group Policy if all of them are in their own OU (or by using filters), and use the Computer config >> windows settings >> security settings >> registry

and add the key and value there.

This would have an added benefit that the key would be "overwritten" with the correct value everytime it runs just in case the key is getting changed somehow.

Avatar of gjgerson74
gjgerson74

ASKER

Excellent - I will try it in the lab and see what happens.   I would like to use group policy if at all possible.  I will move forward in that direction - Any pointers?

Basically what you are saying is that I can add a key and a value and it will overwrite the existing key and value when the policy is enforced - reboot I assume.

ASKER CERTIFIED SOLUTION
Avatar of TheCleaner
TheCleaner
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I do it and post my results - i thought that was how it would work.  If this works I am going to be so happy - you have no idea how long it took me to get to this point.  I've been back and forth with Access "experts" on this and every time I mention the word registry they think I am crazy.  But I know for a fact that Access uses registry data to identify printers and custom forms on print servers...

Thanks again!
Gary
Welcome...
Well, I only got as far as being able to drill into:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Forms

But I don't see where I can put the form entry that I need and the data value?

Here is the current entry that needs to be changed:

AirTranXP
5c,4b,03,00,5c,4b,03,00,00,00,00,00,00,00,00,00,5c,4b,03,00,5c,4b,03,00,0b,00,00,00,00,00,00,00

I thought that I would be able to drill into the form name and specify the correct data value.