Hi,
Thanks for contacting support.
In order to accomplish your requirement, first you need to create PDF document using Aspose.Pdf.Generator, save the output in Stream object, Instantiate new Aspose.Pdf.Document instance, save the output in MS Excel format, instantiate Aspose.Cells.Workbook object and finally render the resultant Excel file in Web Browser.
[C#]
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();<o:p></o:p>
pdf1.Sections.Add();
pdf1.Sections[0].Paragraphs.Add(new Aspose.Pdf.Generator.Text("Sample Text.. hello world..."));
MemoryStream memorystream = new MemoryStream();
//
pdf1.Save("pdfFileName", Aspose.Pdf.Generator.SaveType.OpenInAcrobat,
Response)
pdf1.Save(memorystream);
//
load PDF file in Document object so that it can be rendered to XLS format
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(memorystream);
memorystream.Seek(0,
SeekOrigin.Begin);
//
we cannot directly render XLS in web browser
//doc.Save(Response,
"resultant.xls", Aspose.Pdf.ContentDisposition.Attachment, New
Aspose.Pdf.ExcelSaveOptions())
//
save output in MS Excel format
doc.Save(memorystream,
SaveFormat.Excel);
//Creating
an Workbook object
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(memorystream);
//...
do something here
//Save
in default format and send the file to user so that he may open the file in
//some
application or save it to some location
workbook.Save(Response,
"Report.xls", Aspose.Cells.ContentDisposition.Inline, new Aspose.Cells.XlsSaveOptions());
//
close stream object
memorystream.Close();