Solved

InfoPath 2010 and Word 2010 Quick Part Doc Properties

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 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