Solved

InfoPath 2010 and Word 2010 Quick Part Doc Properties

Posted on 2013-01-08
7
1,120 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

627 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