s_PrintUI_IE

I use inotes to create notebooks. I want to customize the printed document of notebook. I have found (in forms8.nsf) the subform s_PrintUI_IE used to create printed notebook documents with inotes. I have created a class in UserPrint.css

.hide {

display: none;

}

I try to hide the header of a notebook print document (two fields : subject and category and the horizontal line) I want only the body field on the printed document.

Have you some informations about subform s_PrintUI_IE ?

Thanks

Subject: Don’t use UserPrint.css

I wouldn’t use UserPrint.css. That’s a stylesheet for customer-defined styles. For example, if you wanted to change the background color of printed documents. It affects all printed documents, not just Notebook.

Instead, I would hide the items that you don’t want just before the document is printed. You could do that by adding some code in s_PrintUI_IE. Look for the following code in that subform:

oWin.print()

That’s what calls the Print function. You would put your code just before that call.

Before doing that, however, you’d need to make some changes to the Notebook read subform (s_NotebookPageRead), which is what is used for Notebook printing. The Title and Category items do not have IDs, so you’d need to add them so you can access them in s_PrintUI_IE.

For Title, look for the table row that contains the Title items:

Title: 

Add some kind of ID:

Do the same kind of thing with other items that you want to hide.

Back in s_PrintUI_IE, you can now add some code like this before the print() call:

var oDoc = oWin.document;

var objTitle = oDoc.getElementById(‘idNotebookTitle’);

if(objTitle) objTitle.style.display = “none”;