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.

Thu Dec 01, 2016 10:45 am

Hi admin!
I LoadFromFile("filename.pptx"). but i getn't DefaultParagraphStyle? DefaultParagraphStyle = none? althought it's center?
Can you help me?

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Fri Dec 02, 2016 2:55 am

Dear lemuihuongviet,

Thanks for your inquiry.
In my understanding, you want to get the alignment of a paragraph.
Please try to use following code.
Code: Select all
            Presentation presentation = new Presentation(@"9235.pptx", FileFormat.Pptx2010);
            IAutoShape shape = presentation.Slides[0].Shapes[0] as IAutoShape;
            TextAlignmentType type = shape.TextFrame.Paragraphs[0].Alignment;

If i misunderstand, please let me know and provide us sample file.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Dec 02, 2016 7:21 am

Hi Betsy.jiang!
I want to get the alignment of a defaultparagraph => It's in layout frame of slide.
Sample Tiltle layout: defaultparagraph is center but result of code: none.
Presentation presentation = new Presentation(@"9235.pptx", FileFormat.Pptx2010);
IAutoShape shape = presentation.Slides[0].Shapes[0] as IAutoShape;
TextAlignmentType type = shape.TextFrame.Paragraphs[0].Alignment;

I want to get the alignment of a defaultparagraph, fontfamily and fontheight of content samples.
Can you help me, please, Thanks you very murch!

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Fri Dec 02, 2016 7:41 am

Dear lemuihuongviet,

Thanks for your response.
I have noticed the issue and posted it to our Dev team. Once there is any news, we will inform you.
Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Dec 02, 2016 7:46 am

Thanks you very murch!

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Tue Dec 06, 2016 3:22 am

Dear lemuihuongviet,

By investigation, we found the inheritance relation of the style(master/layout/local and so on) is not specific. So I am afraid that the issue cannot be fixed in short time as its complexity. Once there is any great progress, we will let you know.
So sorry for inconvenience.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Jan 23, 2017 9:25 am

Dear lemuihuongviet,

Thanks for waiting.
Now the issue has been resolved, welcome to test Spire.Presentation Pack Hotfix Version:2.7.32.
Looking forward to your reply.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Jan 25, 2017 7:27 am

Dear lemuihuongviet,

Did you test the hotfix ? Has the issue been resolved ?
We will appreciate it if you could give us some feedback.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Feb 06, 2017 8:34 am

Dear Betsy.jiang!
I tested hotfix. Hotfix that errors persits. Thanks

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Tue Feb 07, 2017 8:18 am

Dear lemuihuongviet,

Thanks for your feedback.
Did you mean it is resolved ? Or the issue still persists, not resolve ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 07, 2017 8:42 am

It is not not resolve.

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Tue Feb 07, 2017 8:52 am

Dear lemuihuongviet,

Thanks for your prompt response.
I have tested the file you sent with the latest Spire.Presentation Pack Hotfix Version:2.7.32, it displays center, please check if the version you were using is correct.
Here is my testing code and screenshot.
Code: Select all
            Presentation presentation = new Presentation(@"9235sample.pptx", FileFormat.Pptx2010);
            IAutoShape shape = presentation.Slides[0].Shapes[0] as IAutoShape;
            TextAlignmentType type = shape.TextFrame.Paragraphs[0].Alignment; 


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Feb 13, 2017 6:35 am

Dear lemuihuongviet,

How is the issue now ? Did it resolve ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation