![]() When Word saves such a document back, it will replace the quite sparse (VB-generated) HTML-Content doc suffix only being a hint for either ShellExecute or when the User DoubleClicks the doc) So, Word (at least in the newer versions) is capable to open a plain html-file directly C:\temp\TestDocument.html (in the above right-hand-part of the ScreenShot, opened with IE) ![]() C:\temp\ (in the above left part of the ScreenShot, opened with Word) Note, that the above example spits out two (identical) files, which differ only in their ending: OpenTextFile("C:\temp\", 2, 1).Write Join(HtmlArr, vbCrLf)įunction CreateFld(ID, LabelText, EditText, Optional ByVal SpellCheck As Boolean, Optional Style$) As String OpenTextFile("C:\temp\TestDocument.html", 2, 1).Write Join(HtmlArr, vbCrLf) With CreateObject("Scripting.FileSystemObject") 'write two identical files Here is an example of a Word Document with editable Plain Text Content Controls (these are editable fields in the actual Word Doc, and shown in bold red below).Īny suggestions on how to know which Plain Text Content Control is which so I can 'fill' them programmatically, yet keep the controls editable if I send the Document to someone? My goal is to have pre-prepared (data already populated) EDITABLE documents (using the Plain Text Content Controls).įlds.Add CreateFld("txt1", "Name (First and Last):", "Enter First and Last Name")įlds.Add CreateFld("txt2", "Street Address/Apt:", "Enter Street Address")įlds.Add CreateFld("txt3", "City:", "Enter City")įlds.Add CreateFld("txt4", "State:", "Enter State")įlds.Add CreateFld("txt5", "Zip:", "Enter ZipCode")įlds.Add CreateFld("txt6", "Phone-Number:", "Enter Phone-Number")ĭim i: For i = 1 To Flds.Count: HtmlArr(i) = Flds(i): Next What I would LIKE to do is, instead of using 'regular' Word docs, use a template I created to populate the Plain Text Content Controls directly with VB6 code, pulling from data in my Access tables. I also can create (manually) in MS Word (using the Developer Tab) Plain Text Content Controls, which allow someone to take the Word document and click on the control and type in the appropriate information. I also use Access tables from which to pull data and then code in VB6 where those items may go in a Word Document. So be sure you won't need to update it again in the future.I know how to create MS Word Documents using VB6. If you do this, PERRLA will no longer be able to find or work with that content. You can remove the Content Control box but leave its content by right-clicking the Content Control and selecting Remove Content Control. (This functionality has actually now been added to PERRLA.) One example is if you are trying to join two citations into a single citation. However, there may be times when you want to break a Content Control and edit its content directly. You can find instructions on how to do that here. We recommend that you use PERRLA's features to edit the content of a Reference or Citation. ![]() There are times when it may be necessary to edit the content inside a Content Control. Editing the content inside a Content Control Just like an object or text, you can still move Content Controls around your paper by either cutting & pasting them or by dragging them with their handle. Second, Content Controls can be moved around your paper. Once the blue/grey box disappears, you can start typing again. You can move your cursor outside of the Content Control using the left or right arrow keys on your keyboard. If you are trying to place your cursor beside a content control (like a citation), if the cursor is inside the Content Control you'll be able to see the blue/grey box and you won't be able to type. This is for two reasons: it keeps your format specific content correctly formatted & it's part of how Word works. There's two things you'll want to know when working with text inside a Content Control.įirst, you can't edit the text inside Content Controls. Do I need to do anything special with Content Controls? But, if you put your cursor inside a Content Control, you'll be able to see it as a blue or grey outlined box (it looks like a solid grey box if you just hover over it). This allows PERRLA to find, organize, and update those items as you keep typing.įor instance, by putting the References inside a Content Control, we are able to keep the references sorted alphabetically in your papers.Ĭontent Controls look like normal text most of the time. When you add a Reference or a Citation to your paper, PERRLA adds it into the text inside a Content Control box. The two most common Content Controls are for References and Citations. What is a Content Control?Ĭontent Controls are like digital boxes that allow PERRLA to insert text into your Word document. The PERRLA Add-in interacts with Microsoft Word using their updated tools called Content Controls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |