|
|
Getting start with us . . .
1. Create simple test of the PPT2Flash SDK
2. Checking your license
3. Convert PPT to SWF
4. Copy player data to folder
Events
1. Event ShapeProcessed
2. Event ShapeRender
3. Event SlideProcessed
4. Event SlideRender
Create Simple Test of the PPT2Flash SDK
It’s easier than getting cup of tea, it’s healthier that smoking marijuana, stay with us . . .
// Create instance of SDK
PPApplication ppTestApp = new PPApplication();
// input power point file
string curPath = ”input.ppt”;
// Set if render Powerpoint Effects
ppTestApp.RenderEffects = true;
// set truth values of hight quality
ppTestApp.HightQuality = true;
// set convertibility of filename and dataname
ppTestApp.ConvertPPT2SWF(filename, dataname);
// set coping to folder, taking folder name
ppTestApp.CopyPlayerDataToFolder(foldername);
// ending session
ppTestApp.EndSession();
// it's easy to understand, just try-)
First of all we are checking your program version
// Set path to license file
ppTestApp.SetLicense("conaito","xxx");
// checking for your license . . .
if (ppTestApp.isLicenseValid)
{
// checking licence information for validation
Console.WriteLine("License Information: Valid");
}
// ending session
ppTestApp.EndSession();
// checking for your license . . .
// if something is wrong you can contact with our developers
// ... if everything is clear ... and you can use it with brain
Convertibility PPT to SWF
// set loading data from power point file tacking file name
LoadFromFile(filename);
// set render getting path to PPT file
RenderToFolder(foldername);
Copying player data to folder
// checking for errors
try
{
// set of cur path which getting value in this way
string curPath = ”input.ppt”;
// checking for folder name
if (foldername != curPath)
{
// checking for truth exists and simultaneous deleting
if (File.Exists(foldername + @"index.exe")) File.Delete(foldername + @"index.exe");
}
// checking for truth exists and simultaneous copying
if (File.Exists(curPath) && !File.Exists(foldername)) File.Copy(curPath, foldername);
}
// if false then do this way ...
catch(Exception e) { throw new PptException(" Cannot copy player files "); }
Event ShapeProcessed
// checking for shape procession
if (ShapeProcessed != null)
{
// going to use, event shape process
ShapeProcessed(currentShape, totalShapes);
}
It’s used by Default, currentShape gives you the shape being currently processed, totalShapes gives you the total number of shape present in the PowerPoint slide.
Event ShapeRender
// checking for shape render
if (ShapeRender != null)
{
// going to use, event shape render
ShapeRender(currentShape, totalShapes);
}
SlideProcessed is fired when SDK is reading the information from the slides within the PowerPoint, currentSlide gives you the slide being currently processed, totalSlides gives you the total number of slides present in the PowerPoint file.
Event SlideProcessed
// checking for slide process
if (SlideProcessed != null)
{
// going to use, event slide process
SlideProcessed(currentSlide, totalSlides);
}
It’s used by Default, currentSlide gives you the slide being currently processed, totalSlides gives you the total number of slides present in the PowerPoint
Event SlideRender
// checking for slide render
if (SlideRender != null)
{
// going to use, event slide render
SlideRender(currentSlide, totalSlides);
}
SlideProcessed is fired when SDK is reading the information from the slides within the PowerPoint, currentSlide gives you the slide being currently processed, totalSlides gives you the total number of slides present in the PowerPoint file.
* Adobe Flash®. and Macromedia Breeze® are registered trademarks of Adobe.
* Microsoft PowerPoint® is a registered trademark of Microsoft.
Any Questions?
Our Support Forum or Knowledgebase/ Helpdesk is the best way for your questions. By this way can we help many user to find a answer on their questions.
Please feel free to contact the conaito Support Team incase of any question.
Copyright © 2009, conaito Technologies - www.conaito.com. All rights reserved.
Created with the Freeware Edition of HelpNDoc: Easily create HTML Help documents