Bookmarks on one level

Hello,

I want to create bookmarks and save my workbook with them as pdf. With the following code I can create a bookmark tree:

PdfBookmarkEntry pbeRoot = new PdfBookmarkEntry();
pbeRoot.Text = "section1";
pbeRoot.Destination = A;
pbeRoot.SubEntry = new ArrayList();
PdfBookmarkEntry subPbe = new PdfBookmarkEntry();
subPbe.Text = "section2";
subPbe.Destination = B;
pbeRoot.SubEntry.Add(subPbe);
subPbe = new PdfBookmarkEntry();
subPbe.Text = "section2";
subPbe.Destination = C;
pbeRoot.SubEntry.Add(subPbe);

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.Bookmark = pbeRoot;
workbook.Save(filename, pdfSaveOptions);

But I don't want to have one root and some subitems. I want all items on one level without a root. How can I do that?

Regards

Ringo

Hi,

Please download and use the latest version:
Aspose.Cells
for .NET v7.1.2.
5
and let us know your feedback.

If the problem still occurs, then please provide us your complete sample runnable code and the screenshots explaining your bookmark issue with red circles highlighting the points of interest.

I have tryed with Aspose.Cells for .NET v7.1.2.5 but I still have the problem.

In this way I can only create one root and some subEntries. But I want a flat structure, no root but only the subEntries. I don’t know if there is a way to get this. This was my question before.

You can see it on the attached image.

Hi,

Thanks for your feedback and providing us the screenshot.

I will recommend you to also try the latest version:

Aspose.Cells for .NET 7.2.0


However, now I have logged your issue in our database. Development team will look into this issue and provide you a workaround/sample code to deal with this problem.

Once, we will have some update relating to it, we will let you know asap.

This issue has been logged as CELLSNET-40582.

Hi,


Please download and try the latest fix: Aspose.Cells for .NET 7.2.0.1

See the sample lines of code for your reference:

PdfBookmarkEntry pbeRoot = new PdfBookmarkEntry();

pbeRoot.Text
= “”; // set pbeRoot.Text =“” will hide root bookmark for your need.

Thank you.


Yes, with this way and the v7.2.0.1 it works as requested.

Thank you.

The issues you have found earlier (filed as CELLSNET-40582) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.