Solved

InfoPath 2010 and Word 2010 Quick Part Doc Properties

Posted on 2013-01-08
7
1,085 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
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…

828 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