XPrint Active X Control

K

Kate

I have added the Notes field to a custom Contact form. Is
there a way to get it to print with the XPrint Active X
control?

If not is there a way to bind a user-defined control to
the Notes field so that the notes I now have in this field
populate my new control and print with the X-print?

Thanks
 
K

Ken Slovak - [MVP - Outlook]

See the information about XPrint at
http://www.slipstick.com/dev/customprint.htm

I find a better and more flexible solution is to output what I want
directly to a Word document using code and formatting it the way I
want.

A form can only have 1 Notes control and there is one already on the
Contact form. Did you disable the existing one? You can't bind a
textbox control to the Body property (Notes) but you can put code in
the form to show Item.Body in your control and to save the control's
contents to Item.Body when the form is closed or saved. A textbox
doesn't have the flexibility that the built-in Notes control does
however.
 
K

Kate

Ken

Thank you..

The user who created the form removed the notes field from
page 1 of the form. (I've read that page 1 shouldn't be
customized but what she did seems to be working so far...)

I am not familiar with VB Script. If you could help me
with the script that would enable me to use your
suggestion of putting code in the form to show Item.Body
in the control and to save the control's contents to
Item.Body when the form is closed or saved that would get
us where we need to go unless the text box would impose
limitaions we are not aware of...

What functionality would we be giving up by using the text
box vs the notes field?

Again, thank you for your help.

PS We opted out of the Word solution because the form is 4
pages and we wanted to have control over which pages
printed. If you feel this was not a good decision please
let us know...we value your opinion
 
K

Ken Slovak - [MVP - Outlook]

A textbox control doesn't do things like formatting URL's or links,
for one limitation.

Code would look something like this. This assumes that the tab you are
using has been named "MyTab" and the new textbox control is named
"txtNote" and the user property is named "NoteBody".

In the Item_Open event handler in the form:
Dim oInspector
Dim oControl
Dim oPage

Set oInspector = Item.GetInspector
Set oPage = oInspector.ModifiedFormPages("MyTab")
Set oControl = oPage.Controls("txtNote")
oControl.Text = Item.UserProperties("NoteBody")

In the Item_Write and Item_Close event handlers just get the control
again and use this line:
Item.UserProperties("NoteBody") = oControl.Text

I'd also go to http://www.slipstick.com/dev/forms.htm for a lot more
information about custom forms and designing and coding them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top