Controlling page setup programmatically

Larry S.
La Vergne, TN

Mar 15, 2011
8 Posts

0  |  0  

Re: Controlling page setup programmatically

I need to be able to control the header and footer, margins, font (size and type) for printing.

I found the following:
{
ALog.PrintLog ( FALSE , sHeader, sFooter )  ! To control the header and footer and print

Log.PlainText=True  
Log.Height=10    ! Is this the font size????
}

Am I anywhere near on the right path or are there registry entries I can modift to do this.

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Mar 15, 2011
358 Posts

1  |  0  

Re: Controlling page setup programmatically

Yes, if you need to print text log (instead of HTML) you need to call these.

You may also read the following KB articles:
http://www.marvintest.com/KnowledgeBase/KBSearchArticles.aspx?ID=188&task=go&search=footer&type=OR
http://www.marvintest.com/KnowledgeBase/KBSearchArticles.aspx?ID=23&task=go&search=footer&type=OR

Margin can be setup from Internet Explorer Page Setup... dialog or programmability by setting the IE margin registry keys:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup

If it is important to you, you can restore the values to the original values after printing is done.



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]