Page 1 of 1

Spreadsheet with two title lines...

Posted: Tue Apr 30, 2013 7:05 pm
by rogersonra
Hello, I'ma new user and I am having a hard time finding what I'm looking for in the user guide and forums.

I want to create a title on the spreadsheet which spans multiple row. For example:

This is the first line of the title
Second line
Third line

Details....

On the writeExcelTask I am only allowed on Title (additional title was my first thought).
Then I changed the value of Title to ${Concat('This is the first line of the title','\n','Second line', '\n','Third line')]
but it still only wrote the title on one line.

How do I get the title to flow to more than one line?

Thanks,

Rob

Re: Spreadsheet with two title lines...

Posted: Fri May 24, 2013 12:08 pm
by Support_Rick
The easiest way to do this is to create a Template with your headers already defined. Something like:
Double_Header_XLS_Template.JPG
Double_Header_XLS_Template.JPG (24.53 KiB) Viewed 9027 times
Then, set up your project for the writeExcel Task like this:
WriteExcelTask_BasicTab.JPG
Add the Data Element:
WriteExcelTask_DataElement.JPG
And execute ... your final output would look something like this:
WriteExcelTask_FinalOutput.JPG

Re: Spreadsheet with two title lines...

Posted: Thu Mar 26, 2015 9:39 am
by WallyD444
It may be a helpful feature in a future release to allow multiple titles, that way we can pass variables through without having to use a template.

Re: Spreadsheet with two title lines...

Posted: Tue May 19, 2015 2:28 pm
by Support_Jon
If you need to dynamically build a spreadsheet with multiple heading rows here is another approach to consider.

Pass along your variables to your project, and write all your header specific rows to a file (I'd recommend you use a workspace to store it). Then, when you get ready to write out the data, simply use this new file that contains your header specifics as your template.

This will give you ultimate flexibility in writing your headings as you see fit while still being dynamic.

Thanks - Jon