Jump to content

Recommended Posts

Posted

We are using XP stations on an RM Community Connect network.

 

I'd like to be able to identify the dimwits who print out huge web pages and then leave the results lying around in my printer. We had a reg fragment which did this for IE5, but I can't get it to work with IE6. If I use the reg fragment below, all we get is the string %username% printing at the bottom of the page instead of its value. Presumably the variable which stores this value has been changed.

 

Has anyone got this working?

 

REGEDIT4

 

;These settings add %username% as a header to IE pages

; when printed

 

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup]

"footer"="&u&b&d"

"header"="Printed by: %Username% &w&bPage &p of &P"

"margin_bottom"="0.750000"

"margin_left"="0.750000"

"margin_right"="0.750000"

"margin_top"="0.750000"

Posted

I use Print Manager Plus logs to find out who the print buffoons are and kill their output when it's too huge.

 

Come to think of it, the kids can't print anything prefixed http:// because I setup PMP to stop them! They have to copy and paste into a saved document to print from the internet.

 

It doesn't half make them think and it's reduced the rubbish no end.

Posted (edited)

You will need to change the key type to be REG_EXPAND_SZ so that it inflates the %username% bit. I gave it a go and it works for me on my machine.

 

The location of the one for IE7 is the same so it should work throughout versions:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup]

 

In REG_SZ format it looked like this:

"footer"="&u&b&d %Username%"

 

But when expanded to REG_EXPAND_SZ it changes to this:

"footer"=hex(2):26,00,75,00,26,00,62,00,26,00,64,00,20,00,25,00,75,00,73,00,65,\

00,72,00,6e,00,61,00,6d,00,65,00,25,00,00,00

Edited by SYNACK
re read post
  • Thanks 1
Posted
Doesn't work for me I'm afraid - I'm still just getting "%username%" printed as a footer instead of the actual value of the variable (assuming it exists in Community Connect of course)
Posted
Doesn't work for me I'm afraid - I'm still just getting "%username%" printed as a footer instead of the actual value of the variable (assuming it exists in Community Connect of course)

 

Have you gone into the registry on one of the machines and checked that it is a REG_EXPAND_SZ type value that is stored. If it is not just delete the value and recreate it as a REG_EXPAND_SZ type value with the same name. This should allow you to check it. If that does not work then it is something to do with your machines setup.

 

If this does work then the registry change may need to be scripted to specify the type properly.

  • 3 years later...
Posted
I have an MSI for this if you would like it?

 

hi, can i have the source code for it becouse i need to make same changes in it and for sure you will have a copy of it after change

Posted
hi, can i have the source code for it becouse i need to make same changes in it and for sure you will have a copy of it after change

 

Dont know it I have the source code for this anymore but I will dig around and post it if I manage to find it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...