Is there a way to reference table from existing docx template? My template is already formatted and I just need to populate items from that table.
fileFormatProvider = New DocxFormatProvider()
Dim fileName As String = "D:\myTemplate.docx"
fileExtension = ".docx"
Using input As New FileStream(fileName, FileMode.Open)
document = fileFormatProvider.Import(input)
End Using
Dim editor As New RadFlowDocumentEditor(document)
dim myTemplateTable as Table = editor.findTable?? (Cant find any sample or documentation to reference the table)
'Now I need to insert row after 4th row (Note that I have existing rows on 5th which is the subtotal, 6th credits, 7th expenses, 8th Grand Total)
'This new row/rows are dynamic and based on how many items
Dim myNewRow5 as TableRow = myTemplateTable.Rows(3).AddTableRow/InsertTableRow?? (cant find any sample either)
'Once I got the reference of the row I can now populate cells with my data...
Hoping for any information for this scenario.
Thanks in advance,
RJ
Greetings.
Imported the following HTML into the DPL.
<style type="text/css"> p { font-family: Calibri; font-size: 14.6666666666667px; margin-top: 0px; margin-bottom: 0px; line-height: 115%; } .TelerikNormal { font-family: Calibri; font-size: 14.6666666666667px; margin-top: 0px; margin-bottom: 0px; } .TelerikHeading1 { font-family: Cambria; font-size: 28px; font-weight: bold; color: #4F81BD; margin-top: 18.6666666666667px; margin-bottom: 18.6666666666667px; } .TelerikHeading2 { font-family: Cambria; font-size: 20px; font-weight: bold; color: #4F81BD; margin-top: 18.6666666666667px; margin-bottom: 5px; } </style><h1 class="TelerikHeading1"> <span>Study Results</span></h1><h2 class="TelerikHeading2">Issue 1</h2><p>This is the issue</p>Then we export using the following settings in order to include the HTML in an email:
HtmlExportSettings exportSettings = new HtmlExportSettings(){ DocumentExportLevel = DocumentExportLevel.Fragment, ImagesExportMode = ImagesExportMode.External, ImagesFolderPath = @"C:\Temp\TestImages", ImagesSourceBasePath = "cid:", StylesExportMode = StylesExportMode.Inline};htmlFormatProvider.ExportSettings = exportSettings;string body = htmlFormatProvider.Export(outputDocument);The resulting HTML replaces the <h1> and <h2> tags as expected, but it looks like only the color from the assigned classes is being used. The rest of the styles appear to come from the <p> style.
Is there a workaround for this?

I haven't seen anything in the sparse documentation, nor in a forum thread, on the topic of inserting text into a particular table cell.
What I want to know is how to do something that should be very straightforward: get a particular table cell reference and insert formatted text into it.
For example, with this, I create a RadFlowDocument, attach an editor to it, insert a table, then a row, then a cell into the row:
RadFlowDocument document = new RadFlowDocument();RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);var table = editor.InsertTable();var firstRow = table.Rows.AddTableRow();var firstCell = firstRow.Cells.AddTableCell();Hi,
My apologies in advance if this cannot be done using Telerik Document Processing and I'm wasting everyone's time. I'll try and explain my situation the best I can.
We have large number of word documents related to a process which need to be converted to online forms. That's the easy part. The business wants the reporting of these forms exactly in the same format as in the original word documents. So we are hoping to use the word documents as templates (not necessarily .DOTX).
Since the format of word documents often change The idea is to
Since we are in design phase of this I'm open to adapt to any suggestions. Any pointers/demo/advice on approach is welcome.
Thanks in Advance.
Hello friends - I am using the trial of Telerik and am interested to see if it will meet my need of converting 5 radgrids stacked on top of each other into ONE pdf.
My page set-up is like this
Grid1
Grid2
Grid3
Grid4
And I want my pdf to be generated just like this - no added buffering or whitespace. How can this be done'?
Hi,
I'm just evaluating this library.
I want to create a PDF with path objects, but I'm not able set any color.
I'm converting a WPF Path (System.Media.Windows.geometry) with the PdfGeometryHelper.ConvertPathGeometry (Telerik example)) to a Telerik Path geometry:
var wpfWindpwsPath= Geometry.Parse("F1 M 7.5,11.500 L 21.500,11.500 L 21.500,15.500 L 7.500,15.500 L 7.500,11.500 Z");
var wpfWindpwsPathGeometry = wpfWindpwsPath.GetFlattenedPathGeometry();
var wpfTelerikPathGeometry = PdfGeometryHelper.ConvertPathGeometry(wpfWindpwsPathGeometry);
var block = addTableCell.Blocks.AddBlock();
Telerik.Windows.Documents.Fixed.Model.Graphics.Path path = new Telerik.Windows.Documents.Fixed.Model.Graphics.Path();
path.Fill = new RgbColor(156, 156, 155);
path.Geometry = wpfTelerikPathGeometry;
//not possible
block.InsertPath(path);
// this is possible, but color is black
block.InsertPath(path.Geometry);
How can I set a color?

Hello,
I am trying to export docx as pdf but before pdf export I am inserting some html. The html is converted to RadFlowDocument and then inserted by RadFlowDocumentEditor. I am using InsertDocumentOptions which are set to
ConflictingStylesResolutionMode = ConflictingStylesResolutionMode.UseTargetStyle,
InsertLastParagraphMarker = false
When I export the document to docx the html part has formating but when I export as pdf there is no formating.
The attached files are examples of the problem. The font is different and the part that was supposed to be bold is not.
Can you help to solve the problem? Is that a bug or it is not supported?
Best Regards
