1

How to create powerpoint file using xml or javascript, i want to create powerpoint file using javascript, i have some sample code

var xml = '<?xml version="1.0" standalone="true"?>';
xml += '<?mso-application progid="PowerPoint.Show"?>';        
//xml +='<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:p="urn:schemas-microsoft-com:office:powerpoint">';    
xml +='<pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">';
1

1 Answer 1

1

You can create a ppt file inside file cabinet easily. Just you need to have appropriate type name and format. See the below code :

var file = nlapiCreateFile('sample.ppt', 'POWERPOINT', xml);

Note : your string xml has to be base64 encoded.

Sign up to request clarification or add additional context in comments.

5 Comments

yes, but what that xml will contain thats my question is
Probably reverse engineer: free-power-point-templates.com/articles/powerpoint-to-xml Save the file as XML and analyse how to build it.
@SachinPrasad xml is nothing but your string value
@Rockstar will you help me to create the PPT file i will share my code with you
please share your email id so that i can send you my code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.