Telerik Forums
Telerik Document Processing Forum
2 answers
119 views

I have a use case to create the excel file using RadSpreadStreamProcessing and then upload it to the blob in cloud. Could you please share me an example if we are able to do so?

Please note this is possible using RadSpreadProcessing but would like to check with RadSpreadStreamProcessing(because it is relatively fast)

Pushpdeep
Top achievements
Rank 1
 answered on 18 Jul 2018
13 answers
838 views

Hi,

I am trying to use pdfprocession to find a certain text string on the first page

Is there a way to walk through the Page?

 

Dim P As RadFixedPage = Doc.Pages.Item(0)

P. ???

Anna
Telerik team
 answered on 13 Jul 2018
1 answer
102 views

I have a list of RadFlowDocuments, and i need to copy all the document to one TableCell, i have tried merging the 2 RadFlowDocuments but the content adds outside the table.

 

How can I achive it?

 

Thank you!

Tanya
Telerik team
 answered on 12 Jul 2018
2 answers
198 views

Hello,

I use Spreadsheet Streaming to Export large Kendo MVC Grid Data - it works great except the Format of the CSV - how to Change the Delimiter, Quote or Encoding of the CSV Export?

robert

Lairger
Top achievements
Rank 1
 answered on 09 Jul 2018
1 answer
438 views

We're converting a DocX file stream to a PDF file stream but we're getting some weird results with the padding on many elements. In a clean, new document, the Margins are always 2.54cm and the individual padding of tables is completely lost. If we try to edit the Margins (even if we change to a new value and back again), the Margins then drop to 0cm from then on and the table padding is still not applied. The conversion code can be found below:

var providerDocx = new DocxFormatProvider();
            var document = providerDocx.Import(response.Data.Document);
            var providerPdf = new PdfFormatProvider
            {
                ExportSettings = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExportSettings
                {
                    ComplianceLevel = PdfComplianceLevel.PdfA2B,
                    ImageQuality = ImageQuality.High
                }
            };
            var outStream = new MemoryStream();
            providerPdf.Export(document, outStream);

Any help or insight you could provide would be appreciated.

Thanks

Peshito
Telerik team
 answered on 06 Jul 2018
3 answers
1.0K+ views

I'm trying to create a simple two item list, with bullets using the RadFlowDocument and RadFlowDocumentEditor.

Like this:-

  • Item One
  • Item Two

I have to admit it's hard going, as the documentation leaves a lot to be desired (why do none of the examples actually end up creating anything in a document?).

I currently have:-

List list = new List();
 
 newDoc.Lists.Add(list);
 
list.Levels[0].StartIndex = 1;
list.Levels[0].NumberingStyle = NumberingStyle.Bullet;
list.Levels[0].ParagraphProperties.LeftIndent.LocalValue = 24;
 
var line1=  editor.InsertLine("Line One");
line1.Paragraph.ListId = list.Id;
 
var line2=editor.InsertLine("Line Two");
line2.Paragraph.ListId = list.Id;

 

This sort of works, with the two lines being indented, but no bullet character is shown.

This thing should be simple, but isn't.

Boby
Telerik team
 answered on 26 Jun 2018
2 answers
263 views

Hi,

I'm trying to move individual blocks (BlockBase) from one document to another (RadFlowDocument). Unfortunately I get an error saying that the blocks I try to move are still related to their original document. This makes sense, because when creating a new block (both Paragraphs and Tables) you must pass a related document to the constructor. Same goes for all their children like Runs, Breaks, Rows etc.

Therefore my question - how can I copy a BlockBase from one RadFlowDocument to another? Is there a way to change this document relationship to another document?

Thanks in advance

Maks

Maksymilian
Top achievements
Rank 1
 answered on 25 Jun 2018
3 answers
500 views

Hi,

I'm evaluating the Telerik.Windows.Documents API, to replace Aspose.NET in our app, for costs reason.

One of our main need, is to open existing .docx files, and replace all bookmark and formFields in the model, by business values.

I don't find any way to iterate through bookmarks and Fields. The EnumerateChildrenOfType is not usable, as Bookmark didn't inherit from DocumentElementBase.

Aspose allow it with "Document.Range.Bookmarks.Cast<Bookmark>()", can you provide an example or an equivalent ?

Regards,

Romain Lagrange

Tanya
Telerik team
 answered on 22 Jun 2018
4 answers
491 views

Hi,

I have a template that is a Word 2003 format. I have converted the template to docx and inserted some bookmarks in order to have the possibility to use document processing to insert text in the template. The template is provided as is so I can not change that.

I have managed to insert text successfully at the position of the bookmark, but I can not make the list work.

Here is the code I have

private void insertListAt(string bookmarkName, IEnumerable<string> values)
{
    if(values == null || !values.Any())
    {
        return;
    }
    var bookmark = document.EnumerateChildrenOfType<BookmarkRangeStart>().FirstOrDefault(rangeStart => rangeStart.Bookmark.Name == bookmarkName);
    if (bookmark != null)
    {
        editor.MoveToParagraphStart(bookmark.Paragraph);
        foreach(string value in values)
        {
            var line = editor.InsertLine(value);
            line.Paragraph.ListId = list.Id;
            line.Paragraph.ListLevel = 4;
        }
    }
}

but this code does not work.

The values are placed one after the other with no new line between them and the list is not applied to the items

Tanya
Telerik team
 answered on 22 Jun 2018
1 answer
269 views
Hello, I have an Interactive Form which is a single page PDF form that I am attempting to fill in C# code. The Interactive form has a 2 Image fields and 8 text fields to populate. When I grammatically load, the text fields appears as a textbox type object where as Image field is not. Instead it appears as PushButton field. What I am attempting here is to add image in the Image field that program reads as PushButton.  Is there a way to inert Image in to these two fields programmatically? 
Georgi
Telerik team
 answered on 21 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?