HI Team ,
Already I have OpenXML Excel file in the format of bytes and have convert Aspose excel stream format , After that I have tried to convert pdf format in the stream format but is not working .
Pls find the following my code and pls suggest right solution.
private MemoryStream GenerateExcleFileToPDFFile(byte[] ExcelContent)
{
MemoryStream msFile = new MemoryStream();
if (ExcelContent.Length > 0)
{
msFile.Write(ExcelContent, 0, ExcelContent.Length);
msFile.Position = 0;
Workbook workbook = new Workbook(msFile);
workbook.Worksheets[0].IsVisible = false;
workbook.Save(msFile, SaveFormat.Xlsx);
workbook.Save(msFile, SaveFormat.Pdf);
Aspose.Cells.PdfSaveOptions opts = new Aspose.Cells.PdfSaveOptions();
opts.AllColumnsInOnePagePerSheet = true;
opts.OptimizationType = Aspose.Cells.Rendering.PdfOptimizationType.MinimumSize;
//Aspose.Pdf.Document doc = new Aspose.Pdf.Document();
//doc.Save(msFile)
}
it is very critical issue to resolve ,pls response quickly
Thanks
Sreeni