Hi,
We have a requirement like retrieve xls row style & content and apply it to new PDF while creating.
Thanks,
Naresh.
Hi,
We have a requirement like retrieve xls row style & content and apply it to new PDF while creating.
Thanks,
Naresh.
Hi,
Hi ,
thanks for response.
I am capturing the excel style using Aspose.cells and I am creating the pdf using Aspose.pdf. Please find below code what I am writing into pdf.
FileStream fstream = new FileStream(strFilename, FileMode.Open);
Workbook workbook = new Workbook(fstream);
Worksheet worksheet = workbook.Worksheets[2];
Aspose.Cells.Row row = worksheet.Cells.Rows[0];
Aspose.Cells.Cells cell = worksheet.Cells;
Range myrange1 = cell.CreateRange(0, 0, 47, 9);
myrange1.Name = “rangewrokrbookScope”;
string text3;
text3 = string.Empty;
text3 = text3 + ((object[,])(myrange1.Value))[0, 0].ToString();
Aspose.Pdf.Generator.Text text = new Aspose.Pdf.Generator.Text(text3);
sec1.Paragraphs.Add(text);
string Row2; Row2 = string.Empty;
for (int i = 1; i < 6; i++)
{
Row2 = ((object[,])(myrange1.Value))[i, 0].ToString();
Style style = worksheet.Cells.Rows[i].Style;
Aspose.Pdf.Generator.Text RowText = new Aspose.Pdf.Generator.Text(Row2);
sec1.Paragraphs.Add(RowText);
RowText = null;
Row2 = string.Empty;
}
pdf1.Save(strOutputFile);
now I need to apply the exact styles of excel row to pdf.
Please guide how can I achieve this.
Thanks,
Naresh
Hi,
Thanks for quick response.
Yes..I can use direct conversion method in Aspose.cell but we have actual requirement is need to convert the excel to Tagged PDF.So Aspose.cells/Asopse.pdf is not able support directly due to this I am capturing the data from Excel and writing into PDF document while creating.
Is there any way to convert Excel to Tagged pdf using Aspose.cells.
Thanks,
Naresh
Hi,