Hi. I'm using 2 RadEditors to export content to pdf.
I need to generate two different documents and return them to the client.How can I do that with the exportToPdf function from RadEditor.
When I do both radEditors in the same funcion it gives me only the pdf that comes from the second RadEditor.
Here is a sample of the code:
protected void Page_Load(object sender, EventArgs e)
{
printStuff1();
printStuff2();
}
public void printStuff1()
{
RadEditor1.Content = "<h1> Olá Mundo teste1!!!!</h1>";
RadEditor1.ExportSettings.OpenInNewWindow = true;
RadEditor1.ExportSettings.FileName = "teste1";
RadEditor1.ExportToPdf();
}
public void printStuff2()
{
RadEditor2.Content = "<h1> Olá Mundo teste2!!!!</h1>";
RadEditor2.ExportSettings.OpenInNewWindow = true;
RadEditor2.ExportSettings.FileName = "teste2";
RadEditor2.ExportToPdf();
}
Thank you so much.
I need to generate two different documents and return them to the client.How can I do that with the exportToPdf function from RadEditor.
When I do both radEditors in the same funcion it gives me only the pdf that comes from the second RadEditor.
Here is a sample of the code:
protected void Page_Load(object sender, EventArgs e)
{
printStuff1();
printStuff2();
}
public void printStuff1()
{
RadEditor1.Content = "<h1> Olá Mundo teste1!!!!</h1>";
RadEditor1.ExportSettings.OpenInNewWindow = true;
RadEditor1.ExportSettings.FileName = "teste1";
RadEditor1.ExportToPdf();
}
public void printStuff2()
{
RadEditor2.Content = "<h1> Olá Mundo teste2!!!!</h1>";
RadEditor2.ExportSettings.OpenInNewWindow = true;
RadEditor2.ExportSettings.FileName = "teste2";
RadEditor2.ExportToPdf();
}
Thank you so much.