13.07.2015 Views

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 6 ■ SHAREPOINT DOCUMENT, FORM, AND RECORDS MANAGEMENT 215In order to change the form’s trust level, you must not only select the Full Trust securitylevel, but you must also sign the form template with a digital certificate. If you have an appropriatedigital certificate available, you simply check the box labeled Sign This Form Template,click the Select Certificate button, and pick a certificate. If you do not have a certificate available,you can make one by click<strong>in</strong>g the Create Certificate button.If you deploy a form that performs operations that require full trust and you do not properlymodify the form’s trust level, you will receive typical security error messages from the.NET Framework. If, on the other hand, you sign the form with a certificate you created yourself,the end user will receive a message <strong>in</strong>dicat<strong>in</strong>g that the certificate is not from a trustedsource. In this case, the user can choose to trust the form, but you had better make this clearto end users before they receive the message shown <strong>in</strong> Figure 6-12.Figure 6-12. InfoPath security warn<strong>in</strong>gAfter you f<strong>in</strong>ish creat<strong>in</strong>g your forms, you will want to publish them us<strong>in</strong>g the Publish<strong>in</strong>gWizard so they can be used by others. In Chapter 3, I showed you how to create a form library<strong>in</strong> <strong>SharePo<strong>in</strong>t</strong> and publish a form to it. Beyond simply publish<strong>in</strong>g a form, however, you canalso use the Publish<strong>in</strong>g Wizard to deploy your form and associate it with a new content type.You can then use the content type <strong>in</strong> multiple libraries throughout a site.Follow these steps to create a new content type:1. Log <strong>in</strong> to VSCLIENT as a <strong>SharePo<strong>in</strong>t</strong> adm<strong>in</strong>istrator.2. Select Start ➤ All Programs ➤ <strong>Microsoft</strong> <strong>Office</strong> ➤ <strong>Microsoft</strong> <strong>Office</strong> InfoPath <strong>2007</strong>.3. In the Gett<strong>in</strong>g Started dialog, double-click Sample – Expense Report.4. In the Design Tasks pane, click the l<strong>in</strong>k titled Publish Form Template.5. In the Save As dialog, select an appropriate place to save the form and click the Savebutton.6. In the Publish<strong>in</strong>g Wizard, select to publish the form to a <strong>SharePo<strong>in</strong>t</strong> server and click theNext button.7. In the next screen, enter the address of the <strong>SharePo<strong>in</strong>t</strong> server, http://vsmoss, and clickthe Next button.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!