Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - having problem while creating multiple slides
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

having problem while creating multiple slides

 Post Reply Post Reply
Author
martinjacob989 View Drop Down
Newbie
Newbie
Avatar

Joined: 13 October 2012
Location: IN
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote martinjacob989 Quote  Post ReplyReply Direct Link To This Post Topic: having problem while creating multiple slides
    Posted: 13 October 2012 at 8:22am

Hello,

I have site & when i create a slide there were no problem. But when i am trying to create more than one slide, then problem is coming...

data is fatching proerly, but while opening ppt file, file is asking every time for repair.

but 1st slide is there & it's open perfectly without my repair.
Please help me out of this.

===============================
public
PresentationPart CreatePages(PresentationPart presentationPart1, ArrayList alPages)
{
int iTotalSlides = alPages.Count;
GeneratePresentationPart1Content(presentationPart1, iTotalSlides);
SlidePart slidePart1 = presentationPart1.AddNewPart<SlidePart>();
for (int i = 0; i < alPages.Count; i++)
{
slidePart1
= presentationPart1.AddNewPart<SlidePart>("rIdslidePart"+(i+1));
AddNewPage(i+1, slidePart1);
}
SlideLayoutPart slideLayoutPart1 = slidePart1.AddNewPart<SlideLayoutPart>("rIdslideLayoutPart1");
GenerateSlideLayoutPart1Content(slideLayoutPart1);
slidePart1
.AddPart(slideLayoutPart1);

SlideMasterPart slideMasterPart1 = slideLayoutPart1.AddNewPart<SlideMasterPart>("rIdslideMasterPart1");
GenerateSlideMasterPart1Content(slideMasterPart1);
slideMasterPart1
.AddPart(slideLayoutPart1, "rId1");

presentationPart1
.AddPart(slideMasterPart1, "rId1");
ThemePart themePart1 = slideMasterPart1.AddNewPart<ThemePart>("rIdthemMaster12");
GenerateThemePart1Content(themePart1);
presentationPart1
.AddPart(themePart1, "rIdtheme5");
return presentationPart1;
}

public void AddNewPage(List<PageBO> lstPageDetails, int iPageNum,SlidePart slidePart1)
{
Slide slide1 = new Slide();
slide1
.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
slide1
.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
slide1
.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main");
CommonSlideData commonSlideData1 = new CommonSlideData();
ShapeTree shapeTree1 =
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.