Hi,
I have attached one excel files from which two pdf files are generated. testName_1.pdf does not have images. Any idea about why I got testName_1.pdf? Do I miss anything? I used version 8.7.2.0.
Hi,
Thanks for your posting and using Aspose.Cells.
Please share your sample code with which you generated these Pdfs. Is your code same for both Pdfs or different? Is the machine or system environment same for both Pdfs? Let us know your feedback.
Hi,
I used basically the same codes as the following. If the code is placed in a web site then Menu_999999_20160407083903762.pdf is the resulting pdf file. If it is in a console application then Menu_999999_20160407085158594.pdf is the resulting pdf. Both came from MenuWithBackground_3Options_In.xlsx.
License license = new License();
license.SetLicense(@“C:\Users\p068244\Documents\Visual Studio 2015\Projects\Aspose\ImageIssue\ImageIssue\Aspose Cells.lic”);
Workbook workbook = null;
string excelFileName = string.Empty;
LoadOptions loadOptions = new LoadOptions(LoadFormat.Xlsx);
excelFileName = @“D:\inetpub\ficafeForms\ExcelTemplates\Menu\MenuWithBackground_3Options_In.xlsx”;
workbook = new Workbook(excelFileName, loadOptions);
workbook.CalculateFormula();
// RCTBusiness.GetExcelPdfResults(workbook, “Menu”, 999999);
DateTime now = DateTime.Now;
string dateTime = now.Year.ToString() + now.Month.ToString().PadLeft(2, ‘0’) + now.Day.ToString().PadLeft(2, ‘0’) + now.Hour.ToString().PadLeft(2, ‘0’) + now.Minute.ToString().PadLeft(2, ‘0’) + now.Second.ToString().PadLeft(2, ‘0’) + now.Millisecond.ToString().PadLeft(3, ‘0’);
string fileName = “Menu” + “999999” + dateTime;
workbook.Save(@“D:\inetpub\ficafeForms\ExcelTemplates\Menu” + fileName + “.xlsx”, SaveFormat.Xlsx);
workbook.Save(@“D:\inetpub\ficafeForms\ExcelTemplates\Menu” + fileName + “.pdf”, SaveFormat.Pdf);
Console.WriteLine(“All is done!”);
Console.ReadLine();
Hi,
Hi,
Can you send me the zip file? I have a hard time getting it downloaded. Or where can I get version 8.7.2.1 for Aspose.Cells for testing?
Thanks,
Hi again,
Hi,
After using the most recent version 8.7.2.2 and I still could not get the image background in pdf file.
Any advice?
Hi,
- Operating system version & architecture
- Target .NET Framework version