Telerik Forums
Telerik Document Processing Forum
1 answer
33 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
30 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
 updated question on 28 Jan 2022
1 answer
15 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
24 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
5 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
30 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
11 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
25 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
14 views

Hey, anyone knows how to set geometry borders?

Thanks

Svilen
Telerik team
 answered on 18 Jan 2022
1 answer
41 views

Hi.

I am attempting to create bookmark for several blocks on several pages, to create a Table of Content. Each page can contain more than one block. When reading your documents I have found this:

Location location = new Location();
location.Page = document.Pages.Last(); // The issue
location.Left = 10;
location.Top = 10;
BookmarkItem bookmark = new BookmarkItem(titleString, location);
bookmark.IsExpanded = true;
document.Bookmarks.Add(bookmark);

This works creating a ToC with the help of this method:

private static void ToC()
{
	RadFixedPage toc = new RadFixedPage();
	document.Pages.Insert(1, toc);

	FixedContentEditor editor = new FixedContentEditor(toc);
	int offSetVal = 0;

	foreach (BookmarkItem bookmark in document.Bookmarks)
	{
		int pageNumber = 1;

		if (pageNumber > 0)
		{
			int factor = 20;

			int offsetX = 70;
			int offsetY = offSetVal + 20 + factor * pageNumber;
			offSetVal += 10;
			editor.Position.Translate(offsetX, offsetY);

			Block block = new Block();
			block.InsertLineBreak();
			block.GraphicProperties.FillColor = new RgbColor(255, 5, 99, 193);
			block.InsertText(bookmark.Title);
			Size blockSize = block.Measure();
			editor.DrawBlock(block);


			var location = bookmark.Destination;
			GoToAction goToAction = new GoToAction();
			goToAction.Destination = location;

			Link uriLink = toc.Annotations.AddLink(goToAction);
			uriLink.Rect = new Rect(offsetX, offsetY, blockSize.Width, blockSize.Height);
		}
	}
}

The problem is that each action links to the same page. When debugging I can also see that "document.Pages.Last()" has the same value. How can I make it so the correct page is connected?

PS: Please let me know if any value is needed.

Thanks

-Steffen

Dimitar
Telerik team
 answered on 13 Jan 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Benjamin
Top achievements
Rank 2
Iron
Christopher
Top achievements
Rank 1
Iron
Bernd
Top achievements
Rank 4
Bronze
Iron
Iron
Timothy J
Top achievements
Rank 1
Iron
Iron
Iron
Marian
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Benjamin
Top achievements
Rank 2
Iron
Christopher
Top achievements
Rank 1
Iron
Bernd
Top achievements
Rank 4
Bronze
Iron
Iron
Timothy J
Top achievements
Rank 1
Iron
Iron
Iron
Marian
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?