We have an Xlsx based template which we use to generate PDF files. The watermark in the Xlsx file is not being generated in the PDF file. If we use an Xls template, then this works. Can you please help ?
Note: You will find attached an extract of our C# code.
Hi,
Sample code:
Workbook workbook = new Workbook();
Aspose.Cells.Drawing.Shape wordart = workbook.Worksheets[0].Shapes.AddTextEffect(MsoPresetTextEffect.TextEffect2,
“CONFIDENTIAL”, “Arial Black”, 25, false, true
, 25, 8, 2, 1, 100, 600);
//Get the fill format of the word art
MsoFillFormat wordArtFormat = wordart.FillFormat;
//Set the color
wordArtFormat.ForeColor = Color.Gray;
//Set the transparency
wordArtFormat.Transparency = 0.8;
//Make the line invisible
MsoLineFormat lineFormat = wordart.LineFormat;
lineFormat.IsVisible = false;
workbook.Save(“e:\test2\out1.xls”, SaveFormat.Excel97To2003);
workbook.Save(“e:\test2\out2.xlsx”, SaveFormat.Xlsx);
workbook.Save(“e:\test2\out3.pdf”, SaveFormat.Pdf);
Thank you for your quick reply.
Do you think we could have the bug fix rapidly ?
Thanks again
Hi,
Have you corrected the issue in Aspose ?
Hi,
Thanks for your posting and using Aspose.Cells.
We are afraid there is no update for you at this moment regarding this issue. However, we have logged your comment in our database against this issue and requested the product team to provide some fix or ETA for this issue. Once there is some news for you, we will update you asap by posting in this thread.
Hi,
Hi Nathalie,
Hi,
Hi,
//For generating workbook to pdf, html, image, we only support MsoPresetTextEffect.TextEffect1.
Aspose.Cells.Drawing.Shape wordart = workbook.Worksheets[0].Shapes.AddTextEffect(MsoPresetTextEffect.TextEffect1, “CONFIDENTIAL”, “Arial”, 25, false, true, 25, 8, 2, 1, 100, 600);
//Get the fill format of the word art
Aspose.Cells.Drawing.FillFormat wordArtFormat = wordart.Fill;
wordArtFormat.FillType = Aspose.Cells.Drawing.FillType.Solid;
//Set the color
wordArtFormat.SolidFill.Color = Color.Gray;
//Set the transparency
wordArtFormat.Transparency = 0.8;
//Make the line invisible
Aspose.Cells.Drawing.LineFormat lineFormat = wordart.Line;
lineFormat.FillType = Aspose.Cells.Drawing.FillType.None;
workbook.Save(dir + “out2.xlsx”, Aspose.Cells.SaveFormat.Xlsx);
workbook.Save(dir + “out3.pdf”, Aspose.Cells.SaveFormat.Pdf);
Hi,
I am glad to inform you that the issue with the ID CELLSNET-44224 has been resolved. The fix will be included in Aspose.Cells for NET 21.5.
Please notice the team has prepared a hotfix, so you do not have to wait for the official release. Kindly test the project with the hotfix attached to this post and let us know about the results.
Best regards,
Aspose.Cells21.4.1 For .Net2_AuthenticodeSigned.Zip (5.5 MB)
Aspose.Cells21.4.1 For .Net4.0.Zip (5.5 MB)
Aspose.Cells21.4.1 For .NetStandard20.Zip (5.5 MB)
The issues you have found earlier (filed as CELLSNET-44224) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao