Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Feb 05, 2020 6:41 am

HI Team,

Hope you are doing well.

Can we add Hyperlink to a node of SmartArt in a slide of PPT so when we click any node of SmartArt then added hyperlink should work and jump to given hyperlink location in PPT?

For Example:- I need to add Hyperlink to nodes of SmartArt to jump one another slides in a PPT. so that when i click on any node the hyperlink should just jump to provided slide no in hyperlink.

Looking for a positive response . Thanks in advance.

Thanks & Regards,
Anil Kumar

anilbits001
 
Posts: 41
Joined: Thu Sep 05, 2019 12:50 pm

Wed Feb 05, 2020 8:53 am

Hi Anil,

Thanks for your inquiry.
Sorry at present our Spire.Presentation doesn't support adding hyperlinks to the SmartArt nodes. However, we will consider adding it into our further upgrade list with the ticket SPIREPPT-1045. If it can be achieved in the future, we will inform you.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed Feb 26, 2020 10:28 am

Hello,

Thanks for your patient waiting.
Glad to tell that we just released Spire.Presentation Pack Hotfix Version:5.2.1which supports adding hyperlinks to SmartArt node. Welcome to download it from the following link.
Our website: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget: https://www.nuget.org/packages/Spire.Presentation/5.2.1

Corresponding code:
Code: Select all
             if (shape is ISmartArt)
            {
                //Get the SmartArt
                ISmartArt smartArt = shape as ISmartArt;
                ISmartArtNode node = smartArt.Nodes[0];
                node.Click = new ClickHyperlink(presentation.Slides[0]);
                //node.Click = new ClickHyperlink("https://www.e-iceblue.com");
            }


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Feb 27, 2020 7:01 am

Hi Rachel,

Thanks for providing this functionality quickly.

It would be great if you can provide the same code in VB.NET to add hyperlink on a node in SmartArt in PPT. I tried this in VB.Net but it's not working. So could you please provide code in VB.NET?

Thanks in Advance. Looking for a positive response.


Thanks & Regards,
Anil Kumar

anilbits001
 
Posts: 41
Joined: Thu Sep 05, 2019 12:50 pm

Thu Feb 27, 2020 7:23 am

Hello,

Thanks for your response.
Below is the code in VB.NET for you, please check. If there is any question, just get back to us.
Code: Select all
        Dim ppt As Presentation = New Presentation
        ppt.LoadFromFile("test.pptx")
        Dim shapes As ShapeCollection = ppt.Slides(0).Shapes
        For Each shape As IShape In shapes
            If (TypeOf shape Is ISmartArt) Then
                'Get the SmartArt
                Dim smartArt As ISmartArt = CType(shape, ISmartArt)
                Dim node As ISmartArtNode = smartArt.Nodes(0)
                node.Click = New ClickHyperlink(ppt.Slides(0))
                'node.Click = new ClickHyperlink("https://www.e-iceblue.com")
            End If
        Next
        ppt.SaveToFile("result.pptx", FileFormat.Pptx2013)


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Feb 27, 2020 8:17 am

Hello Rachel,

Thanks for a quick response.

This code works well when i execute with a predefined ppt template with an smart art already placed. However, when i try to add smartart at run time in blank template and then if i try to assign hyperlink to one of its node then it throw NullException Erorr. I am attaching a screen shot and sample code for that. Could you please help me on this.

Please see the code below which i am using.

Dim ppt As Presentation = New Presentation()

ppt.LoadFromFile("Presentation1.pptx")
ppt.Slides(0).Shapes.AppendSmartArt(50, 50, 3000, 3000, SmartArtLayoutType.OrganizationChart)

Dim shapes As ShapeCollection = ppt.Slides(0).Shapes
For Each shape As IShape In shapes
If (TypeOf shape Is ISmartArt) Then
'Get the SmartArt
Dim smartArt As ISmartArt = CType(shape, ISmartArt)
Dim node As ISmartArtNode = smartArt.Nodes(0)

node.Click = New ClickHyperlink("https://www.e-iceblue.com")
End If
Next
ppt.SaveToFile("result.pptx", FileFormat.Pptx2013)

Thanks in Advance. Looking for a positive response.

Thanks & Regards,
Anil Kumar

anilbits001
 
Posts: 41
Joined: Thu Sep 05, 2019 12:50 pm

Thu Feb 27, 2020 9:13 am

Hello,

Thanks for your feedback.
I have reproduced your issue and logged it in our bug tracking system with the ticket SPIREPPT-1067. If there is any update, we will let you know.
Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed Mar 04, 2020 3:49 am

Hi Rachel,

Hope you are doing well.

Is there any update on this? when should we get this bug fixed with new hotfix?

Thanks in advance. looking for a positive response.

Thanks & Regards,
Anil Kumar

anilbits001
 
Posts: 41
Joined: Thu Sep 05, 2019 12:50 pm

Wed Mar 04, 2020 5:37 am

Hello,

Thanks for your following up.
I just got news from our Dev team that your issue has been fixed and now it is under the testing phase.
Sorry at this moment we can't tell you an estimated time. Once it passes the test, we will compile a hotfix for you asap.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Mar 12, 2020 3:47 am

Hello Rachel,

Hope you are doing well.

Is there any update on this? We are waiting for this urgently.

Thanks in Advance. Looking for a positive response.

Thanks & Regards,
Anil Kumar

anilbits001
 
Posts: 41
Joined: Thu Sep 05, 2019 12:50 pm

Thu Mar 12, 2020 9:18 am

Hello,

Thanks for your following up.
Glad to tell you the bug SPIREPPT-1067 has been fixed now. And considering your urgent situation, we compiled a temporary version for you. Please download and test. If there is any question, please get it back to us.
http://www.e-iceblue.com/downloads/Temp ... _5.3.2.zip

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Mon Mar 16, 2020 3:25 am

Hello Rachel,

Thanks a lot for a quick fix with providing hotfix.

It's working fine for us now.


Thanks & Regards,
Anil Kumar

anilbits001
 
Posts: 41
Joined: Thu Sep 05, 2019 12:50 pm

Mon Mar 16, 2020 3:38 am

Hello,

Thanks for your feedback.
If you encounter any question related to our product in the future, just feel free to contact us.
Have a nice day!

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Mar 17, 2020 3:56 am

Hi Rachel,

Hope you are doing well.

It's a great feeling that, we want to purchase licence of Spire.Presentation tool with latest this bug fix .

So could you please let us know when the new hotfix version available with this latest issue/bug fixed?

Looking for a positive response. Thanks in advance.

Thanks & Regards,
Anil Kumar

anilbits001
 
Posts: 41
Joined: Thu Sep 05, 2019 12:50 pm

Tue Mar 17, 2020 6:38 am

Hello,

Thanks for your contacting.
I got news from our Dev team that they plan to release a new version within this week. Once the new version is available, we will inform you ASAP. And kindly note that you can use the temporary version just like using our official version. If you have any question related to purchase and using, just feel free to contact us.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Presentation