Modify custom template with form

M

Malic

Hello.

I've been asked to modify a Outlook email template. Let me explain the
details.

We have Exchange 2000. We use outlook xp.

We have had a form which was created for us by a consultant 4 years ago.
This email template is like a normal email with custom fields added to it.
It has several tabs with information to fill out. On the last tab there is
a print button. This print button sends all the information in the email
template to a form and then prints it to our printer.

I have modified the email template to include some new fields and
information. This is where my problem comes in.

I have no idea how to add these fields to the form that prints. I went and
opened the form in word, I see everything. I added some new fields and gave
them the name of the fields I added to the template. When I print these new
form fields are blank.

I have never designed templates or forms, do I need special tools to modify
these objetcs? Please set me straight!

Thanks
 
S

Sue Mosher [MVP-Outlook]

Does the Print button have code written for it? IF so, that's where you have
to add code to print your forms, using the same techniques as in the code
that's already there.
 
M

Malic

Yes, I see some code...

Sub cmdPrint_Click()


I will mess around in there. However, when I publish my form the print
button doesnt work anymore. How do I debug where my error is? I'm not a
programmer/developer, im a network admin with no programming experience.
Thanks ;)

Thanks.
 
M

Malic

I go tit I think.

I do run this code from design and when it errors ask me to open Microsoft
script editor of .net 2003.

Thanks for the info. Hopefully I can figure this stuff out soon!!!
 
S

Sue Mosher [MVP-Outlook]

Code will run only on forms that you've published. If you need more
information on publishing forms, see
http://www.outlookcode.com/d/formpub.htm

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

Malic

Ok, I have published my form but I think there is an issue.

When I click the print button nothing happens. If from that same form I do
"run this code" and then print, it prints correctly.

What is the problem? I have all the objects of the form checked in and
published, my word form is in a shared directory on fileserver.

Thanks.
 
S

Sue Mosher [MVP-Outlook]

Sounds like you may have done something to one-off the form. The page I
referred you to earlier explains this phenomenon. In particular, you should
not check the "send form definition with item" box on the (Properties) page.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

Malic

Awesome. The check box for the send form was causing the problem.

I appreciate your help. I'll have this knocked out in no time now. One
last question.

When I open the form, the name in the title bar is "Package BuildDeploy
Request Form - Form (Rich Text). There is needs to be a space between Build
and Deploy.

I want to rename this title bar to something else. I found someplace to
change the name and it changed to "Package BuildDeploy Request Form -
Package Build Deploy Request Form (Rich Text).

How do I change the first part to fix the typo! Argh! I'm gunna go buy
your book right now!!! ;)
 
S

Sue Mosher [MVP-Outlook]

The initial title bar uses the display name you set when you published the
form. Republish with the same message class but the display name corrected
 

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