Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

InfoPath 2010 and Word 2010 Quick Part Doc Properties

Posted on 2013-01-08
7
Medium Priority
?
1,153 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
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 …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

722 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