set case of content bound via content controls in docx - ms-word

I have a docx file that contains a custom part and a web page that collects input from the user to populate that custom part. One of my "variables" is used multiple times in the document. In some cases, I need it to appear in ALL CAPS. In most cases, it should appear as the user entered it in the web form. We're using docx4j version 3.2.1.
Previously we used "mail merge" fields which allowed for instructions like /* UPPER */ and /* CAPS */.
is there a way to get that same behavior using content controls?

You should be able to set the rPr property on a plain text content control to include:
http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/caps.html
Failing that, its not elegant, but you could always include a second element in your XML with the caps form.

Related

TinyMCE autocloses HTML tags - How to disable? 2

Same question as here
I have two tinymce Editors One of them for Header other for Footer(needs o be done for email template).
I want for example to have
<div>abra in Header editor. After saving becomes <div>abra</div>(closes the tag)
And
cadabra</div> in Footer editor. After saving becomes cadabra(removes tag)
so that at the end I could get <div>abracadabra</div>
How can i disable it?
You cannot disable TinyMCE from trying to create valid, well-formed HTML. The engine that drives TinyMCE is designed to ensure that the content in any one editor is valid and well-formed and while you realize that the data across two editors is intended to be correct TinyMCE won't allow you to do this. You could certainly post-process the data when extracting it from TinyMCE to get your desired end result.

SenderView and making fields read only

Given this workflow:
Our user selects some documents (pdf forms that we fill with data on our servers using iTextSharp) in our software
We use the REST API to generate a sender view and navigate them to it
The documents may have editable PDF form fields on them that the sender will fill in.
When the user is on an iPad and for whatever reason doesn't have a bluetooth or other keyboard handy and has to use the GUI keyboard (our users are on the road a lot) they don't have a command key so can't make use of the keyboard shortcuts in the sender view to easily select all fields and mark them read-only.
Desired result: upon sending all non-signature related fields become read-only.
The end result we desire is that after the sender fills in any fields, all non-signature related fields that are left become read-only so that any signers cannot make changes. On desktop or with a connected keyboard, keyboard shortcuts, etc. make this trivial for the user to accomplish on short documents. However, on longer documents or in cases where a connected keyboard is not available, this is not trivial and is actually a bad user experience.
Is there any setting that I've overlooked that would do this automatically? Any particular way of forming the envelope that would accomplish it automatically? When we create the envelope we do assign the signature fields to the appropriate signer using composite/inline templates and tabs collections. That part is working fine currently. We are now trying to add the ability for the sender to preview the document, fill in missing data and send while disallowing signers from editing.
Before uploading the PDF to DocuSign, set the Form fields on your PDF as readonly. See this answer for doing this using iTextSharp.
When the envelope is created, DocuSign will transform those Fields as readonly for the Signer.
Sender should still be able to edit the read only fields in the sending experience.

Change fields depending on drop down selection in Microsoft Word design mode

Can anyone point me to info about how to create a Microsoft Word document that changes text input fields depending on what the user selects in a drop-down menu?
I'm using Word, Developer toolbar, Design mode, and have gotten as far as how to create the drop down selection box, and add text input fields below that on the page, but I need to know how to change what fields appear depending on what the selection is. I'm sure it's possible, I just don't know how to go about it.
I'm pretty good with this sort of thing in HTML with javascript and jQuery, but Word is its own little world.
I tried the "structured" tab but it suggests selecting XML add ins, and none appear in the list to select.
One option is using a template approach in combination with 3rd party toolkit and external application. External application takes care for user interface where user selects template and sets filter for data retrieval. The application then reads the data, generates new document based on template and populates it with data.
You don’t have to mess with MS Word macros and this solution can survive Office upgrades very smoothly.
Template design in done in MS Word. We are using third party toolkit (i.e. Docentric Toolkit) for populating Word documents with data.

Space length limitation

I have a word document file which is a form.
I try to complete it. Here is a screenshot of how it is looks like
When I type in the grey box there is a limitation in length and when I reach it, it won't let me type more.
I am not sure of what it is, however I want to insert an image or a table but I can't.
How can I make it?
The field you are trying to enter information into is a Legacy Text Form Field in Word 2010. In order to have a data entry area within the form that will accept text, tables, and images, delete this field and replace it with a Rich Text Content Control. This control is found on Word's Developer Tab:
Instructions for Displaying Word Developer Tab (if needed)
Like the legacy form fields, content controls allow manual or programmatic entry of data as well the ability to restrict editing of the data within the content control. Gregory K. Maxey has posted an incredibly detailed tutorial on creating forms with content controls, programming the content entry via VBA (Visual Basic for Applications) and restricting editing of the control's contents (all of which is available using the Rich Text Content Control):
Create Forms with Content Controls by Gregory K. Maxey
The same author also has an additional posting on content controls where he provides links to and offers explanations of more advanced content control abilities such as data mapping:
Content Controls (Additional Information) by Gregory K. Maxey
Lastly, Microsoft also provides some guidance on programming content controls via .NET (which I think may be beyond the scope of your question, but which I include for future readers):
MSDN: How to Add Content Controls to Word Documents

Word document in HTML page does not display toolbars

I have a requirement to display dynamically generated word document on the server in an html page
I tried using the OBJECT tag and the document was indeed displayed correct. But the toolbars like print, file etc are missing.
Note: secondary requirement is to enable the user to print the contents of the word document displayed, so the print toolbar is essential for this.
I'm not sure that this is actually possible. When you use the <object> tag, Word is being invoked to render the document, but you don't actually have a full-fledged instance of Word running in the browser. I doubt that there's any way to get Word to display its UI inside the <object> area.
You may have to write some javascript to invoke the browser's print capabilities.