Hello,
I have some code to import a Word-document with MergeFields, than I MailMerge it with some data end export it to a new document.
This works fine, but I also want to fill a table in the document. How can this be done?
I was trying something like this, but this doesn't work ...
Thanks for any help you guys can give!
using System.Collections.Generic;
Hello, i use library for manipulate word (RadFlowDocumentEditor) and i need to save file in PDF i use PdfFormatProvider, i use free of 9 font in word for print a barcode, but after i save in pdf does not print a font with barcode.
what can I do? It's possible include font?
Hi,
I am trying to convert a PDF to an image server side in our .Net MVC application.
I have seen this forum post https://www.telerik.com/forums/convert-pdf-to-jpg and it explains how to convert a pdf to an image but those libraries don't seem to be available in an MVC application.
Is there a solution that I can use for my application?
I have been banging my head on adding a PNG to a PDF. I can do it with a JPG but no joy with PNG.
public void AddImage(RadFixedDocument document)
{
FixedContentEditor editor = new FixedContentEditor(document.Pages[0]);
using (FileStream fs = new FileStream("ADC.jpg", FileMode.Open, FileAccess.Read))
{
editor.Position.Translate(50, 50);
editor.DrawImage(new ImageSource(fs, ImageQuality.High), 50, 50);
}
}
Change the jpg to a png and I get this error: System.NotSupportedException: 'Can not export other than Jpeg and Jpeg2000 and ImageQuality different than High'
I can change the ImageQuality to low and same error. Is there an example of DrawImage with a png?
Hi, I wonder if you can help with my issue
How do you change the weight, when writing a Microsoft Word document using RadFlowDocumentEditor?
I have a problem when I try to put a bold text, because I get the next error: The name 'FontWeights' does not exist in the current context
The code I'm using is:
RadFlowDocument document = new RadFlowDocument();
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
editor.InsertLine("PASO 3: Detección de riesgos para el nacimiento").FontWeight = FontWeights.Bold;
But regarless of changing the width/height the file size stays the same. Is there a way to reduce resolution ?
foreach
(DataRow _dr
in
DS.Tables[
"PHOTO"
].Rows)
{
FloatingImage image =
new
FloatingImage(sheet,
new
CellIndex(startRow, 0), 0, 0)
{
ImageSource =
new
ImageSource((
byte
[])_dr[
"FOTO_EMPREGADO"
],
"jpg"
),
Width = 65,
Height = 70
};
sheet.Shapes.Add(image);
startRow++;
}
Hello,
I want to open a docx, find and replace an image in the header and replace another image in the body. How can I achieve that?
Thanks
Is this even possible? I'd like some advice.
I'd like to be able to visually show a document on screen and build each page. I'd like each page to be a grid with user selected number of columns and rows and be able to drag the borders to change the size. Then I'd like to be able to drag various UI elements into each grid cell. If it's possible, is there any Telerik training available for this?