?
Solved

Custom Form Registry Entries

Posted on 2006-03-31
6
Medium Priority
?
279 Views
Last Modified: 2010-08-05
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?
0
Comment
Question by:gjgerson74
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:TheCleaner
ID: 16344382
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.

0
 

Author Comment

by:gjgerson74
ID: 16345300
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.

0
 
LVL 23

Accepted Solution

by:
TheCleaner earned 1000 total points
ID: 16345329
It's pretty straight forward...just like you said.

I would put a test server in a new OU to test with, then create the GPO for the reg settings, and link it to the test OU.

No reboot is necessary, just apply the GPO, then wait about 15 minutes for replication, then on the test server do a gpupdate /force
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

Author Comment

by:gjgerson74
ID: 16345493
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
0
 
LVL 23

Expert Comment

by:TheCleaner
ID: 16345575
Welcome...
0
 

Author Comment

by:gjgerson74
ID: 16347076
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Integration Management Part 2
Loops Section Overview

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question