Telerik Forums
Telerik Document Processing Forum
1 answer
358 views
Hi,

We are creating a document with multiple tables using RadFlowDocument and exporting to byte array through DocxFormatProvider. Later converting to PDF document.

We are facing the problem to set the width of the table to align with complete document. Please refer the attached DocxFormatProvider_Export_toBytes.pdf which is having the tables(consider from second table) with right side space is left out.

The same is working fine when we export the RadFlowDocument to byte array through PdfFormatProvider (PDFFormatProvider_Export_toBytes.pdf).  The attached PDF documents are created through below code. 

----- Code -----

RadFlowDocument Targetdoc = new RadFlowDocument();

//Added Contents to Targetdoc 

DocxFormatProvider rfDocxProvider = new DocxFormatProvider();
byte[] docxoutput = rfDocxProvider.Export(Targetdoc);

var rPdfProvider = new PdfFormatProvider();
byte[] pdfoutput = rPdfProvider.Export(Targetdoc);

//PDF Files created

Version: 2021.1.322

We need to export from DocxFormatProvider only as we need to repeat the table header row for next pages.
Please help us to resolve table width issue.
Dimitar
Telerik team
 answered on 09 Feb 2022
1 answer
548 views

Hi All,

I'm new to Telerik. This is the first time I'm working on Telerik.

What I need to achieve is to populate a report as a pdf.

To get the report content, I will query the database,  get all the necessary fields and add them to radFlowDocument Table.

I Need to Add images as header and Footer too.

The content is generated dynamically. I'm not saving it anywhere.

Im using webforms.

Please guide me with your valuable comments.

 

Dimitar
Telerik team
 answered on 01 Feb 2022
0 answers
195 views

Hi,

empty asp net core project

when trying to export a empty file (code from examples) and always get the error:

"Index and count must refer to a location within the string (Parameter 'count')" (see on screenshot)

 

(the export logic is bound to the "Privacy" route in the "Home" controller)

windows 7, visual studio 2022, telerik asp net core 2021.3.1109

project attachet

 

alex
Top achievements
Rank 2
Iron
 updated question on 28 Jan 2022
1 answer
214 views

Hi,

I'm using the Telerik spreadsheet component to open an excel file embedded in a Winforms page.

I notice that dependent dropdowns do not work anymore, they show as empty.

What's the best way to have a dependent dropdown shown with Telerik?

I've tried multiple methods like https://www.contextures.com/xldataval02.html or with Index/Match combination in the Data Validation, all work directly in Excel .. but once opened in the embedded page with Telerik these dependent dropdowns  don't work anymore and show as empty.

I notice the named ranges dissappear once opened with the component.

Any advice / suggestions on this?

Thx in advance!

Svilen
Telerik team
 answered on 26 Jan 2022
1 answer
597 views
Hi,

We are creating a document with multiple tables using RadFlowDocument and exporting to PDF format through PdfFormatProvider. 

We are facing the problem to repeat the table heading row in every page in which corresponding table contents got added. We had set the RepeatOnEveryPage property of the header row, but it’s not working.

Version: 2021.1.322

Please help us to resolve this.
Tanya
Telerik team
 answered on 25 Jan 2022
1 answer
204 views
I am using the telerik document format providers to read an RTF and convert it to a DOCX format. the document contains embedded images in PNG format, but looking at the output of the DOCX it looks like the images have been converted to WMF format. Is there a way to preserve the original image type?
Dimitar
Telerik team
 answered on 20 Jan 2022
1 answer
842 views

Hey there,

I have tried to use RadFixedDocumentEditor in order to have a continuous flow on the document. Before that, I was using FixedContentEditor and changing the position of the elements with the FixedContentEditor:

Ex: pageEditor.Position.Translate(351, 915) -- where pageEditor is FixedContentEditor instance which takes 2 arguments: offSetX and offSetY.

However, I can't seem to figure out how should I change the position of the elements (blocks, tables etc) when using RadFixedDocumentEditor?

Any advice would be much appreciated.

Thanks ever so much


Dimitar
Telerik team
 answered on 20 Jan 2022
0 answers
173 views

Hi 

I am using Telerik in my dot net core Project and its working fine but I need to host my application on an apache server, and when I run my application on the apache server I am getting Unable to find the package Telerik.Document.Fixed. No packages exist with this id in source so my question is Does Telerik work with the Apache server and what are the necessary changes that need to be done for that.
Bobindra
Top achievements
Rank 1
 asked on 19 Jan 2022
0 answers
161 views

Greetings,

any clue on why this is misbehaving on one environment but works fine on another? File exists on both boxes and path is valid.

Its basically adding a doc to a blank doc, however when it use in production will be more than one.

 

Throws exception Invalid URI - Hostname could not be parsed.

Dim MainDoc as New RadFixedDocument()

Dim childDoc as RadFixedDocument = LoadFile('c:\folder\sample.pdf')

MainDoc.Merge(childDoc) <--- error occurs here. the error is when it attempts to clone in the merge

 

Private Function LoadFile(byval strFilePath as String) as RadFixedDocument

      Dim pdfProvider as new PDFFormatProvider()

      Dim returnRad as RadFixedDocument

      Using input as FileStream = File.OpenRead(strFilePath)

             returnRad = pdfProvider.Import(input)

     End Using

     returnRad

End Function



 

 

Jerome
Top achievements
Rank 1
 updated question on 18 Jan 2022
1 answer
160 views

Hey, anyone knows how to set geometry borders?

Thanks

Svilen
Telerik team
 answered on 18 Jan 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?