I downloaded a demo version of aspose.pdf a while ago (about 4 months) and used it to generate some PDF’s. I got it working just fine and just purchased a licensed version. I uninstalled the previous version and installed the latest version, now my pdf’s won’t generate most of the time. It appears as though the first time or two after a reboot they’ll generate, after that it just goes to a blank browser. What am I doing wrong? I believe I’m using the latest hot fix. The code is roughly as follows:
Pdf pdf = new Pdf();
string sFileName;
License license = new License();
license.SetLicense(“Aspose.Pdf.lic”);
// Setup general info
pdf.Author = “InLine”;
pdf.Creator = “InLine”;
Aspose.Pdf.Section sec1 = pdf.Sections.Add();
sec1.IsLandscape = false;
sec1.PageInfo = new PageSetup();
sec1.PageInfo.PageWidth = 710;
sec1.PageInfo.Margin.Left = 15;
sec1.PageInfo.Margin.Right = 15;
sec1.PageInfo.PageHeight = 910;
sec1.PageInfo.Margin.Top = 15;
sec1.PageInfo.Margin.Bottom = 15;
sFileName = “Report - " + DateTime.Now.ToString(“d”);
pdf.Title = sFileName;
sFileName = sFileName + “.pdf”;
// Add the header
Text textHeader = new Text(sec1);
textHeader.TextInfo = new TextInfo();
textHeader.TextInfo.FontSize = 14;
textHeader.TextInfo.FontName = “Arial”;
textHeader.TextInfo.Alignment = AlignmentType.Center;
sec1.Paragraphs.Add(textHeader);
Aspose.Pdf.Segment segHeader = new Segment(textHeader);
textHeader.Segments.Add(segHeader);
sName += " (test)”;
segHeader.Content = sName;
Response.ClearHeaders();
Response.ContentType=“application/pdf”;
pdf.Save(“Report.pdf”, SaveType.OpenInBrowser, Response);
Response.End();