I am using an image as a background for a cell so I can overlay text on the image. I use the same image as the background form multiple cells, and I get the following exception when calling Save():
Hi there,
I am having the same problem when my multi-thread application and the exception
C:\Temp\Aspose\Images\Interpreter_Service.pngC:\Temp\Aspose\Images\Interpreter_Service.png because it is being used by another process.because it is being used by another process.
Please let me know you have a fix.
Danny
Aspose.Pdf.Row row = new Row();
row.Cells.Add(new Aspose.Pdf.Cell());
Aspose.Pdf.Cell cell = new Aspose.Pdf.Cell();
if (infor.Type == InformationType.HeaderText)
{
cell.Paragraphs.Add(Utility.CreateText(infor.InforText, foregroundColor, Aspose.Pdf.HorizontalAlignment.Left, fontSizeHeader, fontFranchise));
}
else if (infor.Type == InformationType.GeneralText)
{
cell.Paragraphs.Add(Utility.CreateText(infor.InforText, foregroundColor, Aspose.Pdf.HorizontalAlignment.Left, fontSize, font));
}
else if (infor.Type == InformationType.Image)
{
row.FixedRowHeight = 47.0f;
Aspose.Pdf.Image img = new Aspose.Pdf.Image();
img.FixHeight = 47.0f;
img.File = @"C:\Temp\Aspose\Images\Interpreter_Service.png";
cell.Paragraphs.Add(img);
}
row.Cells.Add(cell);
table.Rows.Add(row); Aspose.Pdf.Row row = new Row();
row.Cells.Add(new Aspose.Pdf.Cell());
Aspose.Pdf.Cell cell = new Aspose.Pdf.Cell();
if (infor.Type == InformationType.HeaderText)
{
cell.Paragraphs.Add(Utility.CreateText(infor.InforText, foregroundColor, Aspose.Pdf.HorizontalAlignment.Left, fontSizeHeader, fontFranchise));
}
else if (infor.Type == InformationType.GeneralText)
{
cell.Paragraphs.Add(Utility.CreateText(infor.InforText, foregroundColor, Aspose.Pdf.HorizontalAlignment.Left, fontSize, font));
}
else if (infor.Type == InformationType.Image)
{
row.FixedRowHeight = 47.0f;
Aspose.Pdf.Image img = new Aspose.Pdf.Image();
img.FixHeight = 47.0f;
img.File = @"C:\Temp\Aspose\Images\Interpreter_Service.png";
cell.Paragraphs.Add(img);
}
row.Cells.Add(cell);
table.Rows.Add(row); v
Hi Danny,