Link to home
Start Free TrialLog in
Avatar of timspratt
timsprattFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Change WordPad PageMargin registry value

I need to understand how to know what the registry stores the page margin info for wordpad as. I know the location is:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Options\PageMargin

I am writing a application to change the pagemargin values (using Autoit3)
SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia 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
ASKER CERTIFIED SOLUTION
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
@timspratt

To expound on the Harfang comment...
These are long integer values store in the same byte sequence as found in a (VB) long integer variable stored in memory.  Since Windows/Intel is a 'little endian' environment, it means the least significant byte is the left-most byte.

'twip' stands for TWentieth of a Point or TWentieth of an Imperial Point.  It is a typographical measurement related to font sizes.  I try to use 12 point fonts for better legibility of my documents.  Since there are 72 such points to an inch, the 20 multiplier gives the 1440 twips/inch calculation.
angelIII, I recommend that all of the above comments be accepted.  My solution is easy enough, as long as the page margin is to be the same, otherwise harfang and aikimark have provided good guidance on how to modify the registry value accordingly.

Rob.
I don't think my comment qualifies.  It serves as clarification for current and future readers.