Solved

InfoPath 2010 and Word 2010 Quick Part Doc Properties

Posted on 2013-01-08
7
1,069 Views
Last Modified: 2013-02-14
Hi,

I have used a SharePoint 2010 Workflow and Word 2010 Quick Part Document Properties in order to pass the information in my InfoPath 2010 Form through to a Word Document in a SharePoint Library.

This had worked very well until it came to doing the same thing but with a Repeating Table which has a field which is Multi-Line. The information is passed through ok but my issue is with alignment. The Repeating Table in InfoPath has four fields:

1. Date
2. Name
3. Time
4. Narrative

The Narrative field is the Multi-Line field as users may want to put in quite a bit of detail. My issue is that the other fields won't correspond with the Narrative besdie them if the Narrative is several lines long. ie The other fields don't have Line Returns to allow for the Line Returns in the Narrative Field.

A bit hard to explain clearly so see picture attached.

Is there anything I can do to resolve this?

Is there any way for example to have the other fields in the Form formatted as Text Fields that take a new line themselves whenever a Line Break is inserted to the Narrative Field?

Or any way to count the number of Line Breaks in the Narrative Field and apply the same number to the other Fields when mergeing the data?

Any help very much appreciated!

Thanks
Alignment-Problem.jpg
0
Comment
Question by:Tugsol
  • 3
7 Comments
 

Author Comment

by:Tugsol
ID: 38762860
Could HTML Tags be used within a Rich Text box to achieve this even?

Say we had a Rich Text Field hidden in a different View of the Form. We could then use a combination of the Concat Function and HTML to write and merge the values to the hidden field and use that in its place?!?

Not sure if this is possible or even the best way to do this if it is.

Any help on this would be greatly appreciated.

Thanks
0
 

Author Comment

by:Tugsol
ID: 38808944
Thanks modus_operandi!
0
 

Accepted Solution

by:
Tugsol earned 0 total points
ID: 38888540
Ok I've found a solution for my problem. It isn't exactly the way I wanted it but I've checked with my Managers and they are happy enough to change the layout slightly.

I am now going to set it up so it will look like:

[Date]

[Name] [Time]

[Narrative]

To do this I have created a new field which I am going to use with the Eval and Concat functions to achieve this. The default value for the field is as below. I will then use this field as my Column instead so it passes straight through to Word as one Doc Property which is already formatted correctly. To create the line breaks in the below formula I just pressed Ctrl+Enter

eval(eval(Narrative, 'concat(Date, "

", Name, " ", Time, "

", Narrative, "

")'), "..")

Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
My experience with Windows 10 over a one year period and suggestions for smooth operation
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now