Hi all:
I am trying out PDF for .NET, and downloaded the examples but all inherit from each other and it's a bit of a mess. Can anyone tell me where I can find a simple example that, in a standalone ASPX page, creates a PDF file, adds content like tables, and then sends the file back to the user? So in the browser the file should either display, or the user should get an "open or save" prompt. I tried the very simple method shown below, but it did not work…
Thanks in advance for any and all help.
John.
using Aspose.Pdf;
protected void Button1_Click1(object sender, EventArgs e)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
{
//Create pdf document
Pdf pdf1 = new Pdf();
//Add a section into the pdf document
Aspose.Pdf.Section sec1 = pdf1.Sections.Add();
//Add a text paragraph into the section
sec1.Paragraphs.Add(new Text("Hello World"));
//Save the document
pdf1.Save("HelloWorld.pdf");
}