![]() ![]() To use this code, paste it into the ThisAddIn class in your project, and call the AddPictureControlAtRange method from the ThisAddIn_Startup method. This version is for an application-level add-in that targets the. PictureControl2 = Me.Controls.AddPictureContentControl(Me.Paragraphs(1).Range, "pictureControl2")ĭim imagePath As String = My. & _īitmap2 = New (imagePath, True) Me.Paragraphs(1).Range.InsertParagraphBefore() String imagePath = (Į) + "\\picture.bmp" īitmap2 = new (imagePath, true) ĭim pictureControl2 As .PictureContentControl private .PictureContentControl pictureControl2 To use this code, paste it into the ThisDocument class in your project, and call the AddPictureControlAtRange method from the ThisDocument_Startup method. This version is for a document-level customization. This example assumes that a file named picture.bmp exists in the %UserProfile%\My Documents folder (for Windows XP and earlier) or the %UserProfile%\Documents folder (for Windows Vista). The following code example adds a new PictureContentControl to the beginning of the document. You can also select a content control, grab it by the three-dot icon, then drag and drop into the template.A control with the same name is already in the ControlCollection. Copy the content controls you need from the sample document to the template. In the rule settings, click Edit template.Ĥ. Leave it for now and go to the next step.ģ. In the Document template section, click Generate sample document.Ī sample document is opened. In the JungleDocs dashboard, click on the drop-down menu arrow next to the rule containing the template you want to edit, and click Edit From Existing rule (or Edit Base rule for rules in the New tab, or Edit Report rule for rules in the Reports tab).Ģ. ![]() It is a document that contains all the content controls that are available for the related content type or list.ġ. Here's the resulting document, with the content control processed already.Īdding content controls from a sample documentĪ sample document is a quick way to set up your template so that it is automatically populated with SharePoint data. In the example, we've entered the Name field value: DOC-001. Open JungleDocs and run a rule that uses this template to create a new document. This way, you will be able to see the Tag field value without opening content control properties.ħ. We recommend entering the same value in the Title field, too. Picture Content Control can fill the content control with a single picture.Rich Text Content Control can contain custom formatted text or other items, such as tables, pictures, or other content controls.However, you can change the formatting by making changes to the surrounding formatting. Plain Text Content Control is limited to content that cannot contain any formatting.Select one of the three types of content controls to be inserted into the template. Turn on the Developer tab in Word: click File > Options > Customize Ribbon, then check the Developer box and click OK.ģ. Open your Word template (.docx format).Ģ. In this tutorial, you will learn how to do this.ġ. It is also possible to manually add your own content controls to a document template. In JungleDocs you will find that Sample Documents will already include content controls so that you can start automating your documents with ease. ![]() Applies to JungleDocs for SharePoint 2010-2019.įor a similar tutorial for JungleDocs for Office 365, click here.Ĭontent controls can be a great way to automate your document creation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |