Telerik Forums
Telerik Document Processing Forum
4 answers
428 views

Hello,

I am importing a docx file to a radflowdocument and I need to be able to find some elements (such as list items) and see what the font properties are of text and make adjustments. I can see all of the lists in the document, but can't figure out how to get the associated text/text properties for them. Is this possible?

Thanks!

Tanya
Telerik team
 answered on 17 Aug 2017
1 answer
178 views

I'm looking into the possibilities of using Telerik Document Processing instead of Telerik Reporting in order to get some better control over the "widows and orphans" problem that my report in Telerik Reporting has, specifically when table headers appear at the bottom of a page and the data appears at the top of the next, and when a table's footnote (or the last line of a paragraph) appears at the top of a new page by itself, separated from all other data.

I imagine that using a RadFixedDocument could (hypothetically) allow me to control exactly where a paragraph or table breaks across a page, or gets pushed to a new page entirely, but that would be a lot of extra work to implement when I would expect that RadFlowDocument should already be able to do that. The problem is, I haven't found anything in the documentation or online about widow/orphan control in Telerik Document Processing, or even about how or when it determines where to wrap to a new page.

Is there anything built in for this, or can I even see when a page is supposed to break at design-time to prevent stray lines at the top and bottom of pages?

Anna
Telerik team
 answered on 08 Aug 2017
4 answers
504 views

I am currently trying out SpreadProcessing. I am importing an xlsx spreadsheet file using the XlsxFormatProvider, capturing its data into a DataTable and then exporting it (without changes) to a new file (with an xlsx extension).

However, when I subsequently open the exported file in Excel, I get the following message:

We found a problem with some content in <file>. Do you want us to recover as much as we can? If you trust the source of this workbook, click Yes.

If I click Yes, the file appears to load fully and correctly (although I get a further dialog). How can I avoid this message - it's going to be a concern to users of the application I'm intending to use SpreadProcessing in.

Excel Version 2013; Visual Studio 2017; UI for ASP.NET AJAX R2 2017; .NETFramework 4.5.2

Anna
Telerik team
 answered on 08 Aug 2017
2 answers
1.0K+ views

I'm attempting to iterate through the rows of each sheet in an opened Excel sheet - I'm replacing code that used the GemBox library. Previously, I used code like the following:

foreach (ExcelRow row in sheet.Rows)
{
   if (row != null)
   {
       ... do stuff ....
   }
}

 

Is the following the best conversion to using the Telerik library? Or is there a better way to only iterate through rows with content?

 

for (int i = 0; i < sheet.Rows.Count; i++)
{
   var row = sheet.Cells[CellRange.FromRow(i)];
 
   if (row != null)
   {
       ... do stuff ....
   }
}
Tanya
Telerik team
 answered on 07 Aug 2017
1 answer
502 views
How to attach/embed xml file into the PDF/A-3 file?
Anna
Telerik team
 answered on 07 Aug 2017
1 answer
291 views

RTF documents that have non-breaking spaces end up with no space in place of the non-breaking space.  For example, this sentence, with non-breaking spaces after 1/2 and 20:
   It is about 1/2 mile to the park.  I saw 20 people there.

becomes:
   It is about 1/2mile to the park.  I saw 20people there.

I tried loading the RTF in the RadRichTextBox example and got the same result there.

Is there a way to configure it to handle non-breaking spaces or to convert them to regular spaces?

Tanya
Telerik team
 answered on 02 Aug 2017
1 answer
531 views

Is it possible using the telerik pdf processing library to be able to compress the pdf file and also do optimization like aspose.pdf?

 

Deyan
Telerik team
 answered on 01 Aug 2017
1 answer
504 views

IS it possible using the telerik library be able to encrypt a pdf?

 

 

Mihail
Telerik team
 answered on 31 Jul 2017
1 answer
623 views

Hello,

I'm having an issue with text justification not being maintained when going from a Docx > PDF.

I have to do a little bit of a conversion dance (to get fonts embedded), but basically I'm importing some HTML into a RadDocument, exporting that RadDocument as a DocX, importing that DocX into a RadFlowDocument and then finally exporting that to PDF.

The HTML has the text justified and the DocX also shows the text justified, but when it comes out in the PDF the text is no longer justified. Do you have any suggestion on how to fix this?

Thanks!

-Tom

Deyan
Telerik team
 answered on 28 Jul 2017
2 answers
732 views

Hi I'm trying to read a zip file which contains multiple files. Few of the files inside is named in Japanese (and Chinese).

My file: こんにちわ.csv becomes vhtjd.csv instead. I hope you can guide me.

Here is my code:

 using (ZipArchive zip = new ZipArchive(stream, ZipArchiveMode.Read, true, System.Text.Encoding.UTF8))
 {
                        foreach (ZipArchiveEntry e in zip.Entries)
                        {
                            string file= e.Name.ToString(); 

                          }

    }

Yoshiaki
Top achievements
Rank 1
 answered on 13 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?