Sharepoint 2010: How to programmatically update a RTF column with formattings - sharepoint

I've a RTF text field in a list. Users can edit and format this column in many ways, and it also shows up with this formatting in views, which is very beautiful.
However, is it possible to update the RTF column somehow programmatically - e.g. within a workflow? My idea is to use the RTF column for creating formatted reports.
I already created a Workflow which automatically updates the RTF column, but so far, I'm only able to create plain text. No formatting, no new lines, etc. --- can anyone help ?

Use html tags for your content.
EDIT:
item["RTF_Field"] = "<b>this is a strong text</b>";

Related

Populate Yes/No in word Template using Python

I have been able to use adobe document generation to map the fields from an excel data source into a word template. The excel file has columns with Yes/No values which need to map on the word template in a table.
Currently we cannot populate checkbox in the adobe document generation API and wondering if we can achieve this using python-docx
The excel data and the word table can be located in the power automate forum link below
https://powerusers.microsoft.com/t5/General-Power-Automate/Populate-Yes-No-in-word-template/m-p/1751613#M101537
Option 1 - Check the correct option in the table
Option 2 - if option 1 is not possible show the correct value in the template. i.e if the excel row has a value of Yes, hide No and vise versa
I havent used to python-docx before and appreciate any help on this please.
Thanks

Creating rtf template with multi spreadsheets(excel)

I have created a data template report(xdodtexe) and the output will be in excel with multiple spread sheets. My E-Business Suite version is r12.1.3 and I am using Office 2013.
I have created an rtf and in two separate pages layouts are there. For example department in page and employees in page. I am using <?spreadsheet-sheet-name: department?> for naming the sheets but the sheet name comes as "fndwrr" and both the outputs are in the same excel sheet without splitting into two different sheets.
I have also used <?split-by-page-break:?> for splitting into two sheets but this also does not work.
Hello there fellow "BI Publisher self-torturer" :-),
First of all, I would suggest you go over this document here, as the best method of manipulating XLS outputs is by using Excel templates.
Second of all - it would have been great if you supply a sample of the xml data + a sample of the template code as you have it.
Btw, the split-by-page-break that you're trying is for other output formats, such as PDF, RTF etc. which follow a paging rule, unlike XLS.
This being said - I am pretty sure you can't do that using an RTF template.
Also, you should mention the version of the XDO Engine/BI Publisher, because Excel templates are available since version 11.1.15 of BI Publisher.
Pay special attention to the following section Table 3-2 Column Entries, as you would need to put the XDO_SHEET_? and XDO_SHEET_NAME_?, the first being the split/group criteria and the second the actual name of the sheet.
Cheers

sharepoint web service does not store data in one column of list

I try to write some data to a list column using sharepoint web service. The column is single line of text. The text I want to write into the column is an xml text. For example
But sharepoint did not store it; other plain text seems to work.
Do I need to replace xml tags with some code, for example: > is ">"
I did just that, but still is not working.
What am I doin wrong?

Convert richtext strings to excel

I have a form that has TinyMCE for richtext formatting. All of our data is available to export as an HTML report, PDF Report, and Excel Spreadsheet (report).
The fields, that we allow richtext in, show up as the formatted values in both the HTML and PDF reports, but in Excel we show them as strings. For instance:
<b>this part is bold</b><br />line 2 here.
I need a way to make that show up as bold/line-break in excel rather then just showing that string, or at least a way to strip the HTML tags out of there and just show plain text (though I would really like to at least keep the line breaks). Is there some type of macro I can include in the excel download or some C++ program that can convert it or something?
Thanks for your time!
I've done something similar with PHPExcel
The trick is to take your formatted data and find a pattern. In your case, it would probably be table rows/table cells. Iterate through that structure setting the excel cell values as you go. For complex formatting you could fairly simply regex replace what is necessary to get formatted as you desire. The theory may sound a little complicated, but once you get down to it, it's only an hour or two's worth of work.
Certainly there are equivalent programs based on other server technologies. But this one has worked brilliantly for me over the years, and I trust it to work on sites for very big clients with crazy inbound traffic numbers...and it's never failed. It's the only reliable way I've found to write perfect, properly formatted Excel without requiring the user to jump through hoops to get a specific browser.

Coldfusion - Add checkbox to Excel Spreadsheet

I am trying to find out if and how it is possible to create an Excel spreadsheet and add a checkbox as a field. I have created a spreadsheet using the spreadsheet tags already but would like to add this extra field.
Any help would be great..
Thank You
In order to add a checkbox to a spreadsheet, you need to add VB code to it. (making it excel-only, aka won't work on google docs)
It would be much easier to use true/false for column value.

Resources