Telerik Forums
Telerik Document Processing Forum
0 answers
270 views

Hi,

 

I want to set a particular cell to be 20% wide.  I am using .NET MVC libraries.

My code reads as follows 

using CellWidth = Telerik.Windows.Documents.Flow.Model.Styles;

.
.
.

                detailsLine = table.Rows.AddTableRow();
                detailsCell = detailsLine.Cells.AddTableCell();
                detailsCell.PreferredWidth = new CellWidth.TableWidthUnit(CellWidth.TableWidthUnitType.Percent, 20.0);

I have an error:

CS0029: Cannot implicitly convert type 'Telerik.Windows.Documnets.Flow.Model.Styles.TableWidthUnit' to 'double?'

 

What can I do.

Charles
Top achievements
Rank 1
 asked on 02 Jun 2022
1 answer
169 views

Hi Telerik team,

I try to add an image to my document using the following lines:

var imageInline = result.Runs.First().Paragraph.Inlines.AddImageInline();
imageInline.Image.LockAspectRatio = true;

After exporting the document to word the setting doesn't have any effect. The checkbox in word for locking the aspect ratio isn't checked.

 

Is there something I am missing?

 

Dimitar
Telerik team
 answered on 01 Jun 2022
1 answer
591 views

Hi,

Im looking for the solution for Extraction of XML data from .txt file and convert into pdf file in ASP.net core

Thanks in advance

 


Dimitar
Telerik team
 answered on 01 Jun 2022
1 answer
113 views

Are there any plans of making async functions in RadSpreadStreamProcessing?

When used in a server environment, that would increase throughput of requests a lot...

Dimitar
Telerik team
 answered on 26 May 2022
1 answer
301 views

Hi,

In one of my projects, I add a kind of 'stamp' to an existing pdf page by rendering an HTML page on top of the page. I do this with a third-party library other than Telerik.

To reduce the number of different licenses needed I try to accomplish this with the Telerik DPL but I can't figure out if this is possible, and if yes, then how?

Can I add a document page (ie imported from a htmlpage) on top of a page in an existing pdf (the original page should still be visible)

If it is possible then a small sample will be really helpful.

Thanks in advance!

Kees Alderliesten

Tanya
Telerik team
 answered on 25 May 2022
0 answers
108 views
Do you support xlsm extention?

Actual issue:

Following instructions on this page:
https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/formats-and-conversion/import-and-export-to-excel-file-formats/xlsm/xlsmformatprovider

using Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsm;
"The type or namespace Xlsm do not exists..... etc.."
Andrew
Top achievements
Rank 1
 asked on 19 May 2022
0 answers
1.0K+ views

I need pdf landscape orientation.

I export document, then change size:

pdf = pdfFlowProvider.ExportToFixedDocument(doc);
pdf.Pages[0].Size = new Size(1056, 816);

Problem that I have lot of space on the right side, probably because I exported document first.

But I can't change page size before this, because I don't have pages.

How to fix this?

Alexandre
Top achievements
Rank 1
Iron
Iron
 asked on 11 May 2022
0 answers
120 views

I can rotate in RadFixedDocumentEditor using SectionProperties.PageRotation, but if I use


using (RadFixedDocumentEditor editorDocument = new(document))
        {          
            editorDocument.SectionProperties.PageRotation = Rotation.Rotate90;
            editorDocument.InsertRun("Test Run.");          
        }

where document already exist it rotates only what you insert after.

 

Alexandre
Top achievements
Rank 1
Iron
Iron
 asked on 10 May 2022
0 answers
1.0K+ views
I need to convert html to pdf and not sure which one I should use?
Alexandre
Top achievements
Rank 1
Iron
Iron
 asked on 09 May 2022
0 answers
191 views

using the tutorial on:

SpreadProcessing - Import and Export to Xlsm File Format Using XlsmFormatProvider | Telerik Document Processing

I have this code:


        Workbook workbook;

        IWorkbookFormatProvider formatProvider = new Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsm.XlsmFormatProvider();
        using (Stream input = new FileStream(FileName, FileMode.Open))
        {
            workbook = formatProvider.Import(input);
        }

 

when trying to  open the file I get the following error:

Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')

I have not done anything to the file other than attempt to open the file.    Some files can be opened, but many throw this error.  I cannot determine what the problem is and can't figure out what the 'index' is that's being referred to.  

 

Steven
Top achievements
Rank 1
Iron
 asked on 06 May 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?