Hi all,
I'm back working with the Aspose .NET ddls and have a question.

First I do this:
<cfobject type=".NET" name="presentation" class="Aspose.Slides.Presentation" 
assembly="#slidesDLL#">
<cfset presentation.init("#pptFile#")>

Now in order to save this presentation in another format the docs state that I 
need to do call the Save method of the Presentation class. It accepts two 
parameters, a string describing the file location, the second is constant 
described by this class:

C#
public enum SaveFormat

Members
Member Name     Description     Value
Ppt     Save presentation in PPT format.        0
Pps     Save presentation in PPS format.        0
Pdf     Save presentation in PDF format.        1
Xps     Save presentation in XPS format.        2
Pptx    Save presentation in PPTX format.       3
Ppsx    Save presentation in PPSX format.       4
Tiff    Save presentation as multi-page TIFF image.     5

Question:
How do I use this in CF? I've tried the following:
<cfset p = presentation.Save("#clientdir#/#uniqueID#.pdf", "Pdf")>

and

<cfset p = presentation.Save("#clientdir#/#uniqueID#.pdf", 1)>

but both throw errors:
"The Save method was not found.
Either there are no methods with the specified method name and argument types 
or the Save method is overloaded with argument types that ColdFusion cannot 
decipher reliably. ColdFusion found 0 methods that match the provided 
arguments."

If I dump an instance of the SaveFormat class I see this:

        
Field                                 Value
Aspose.Slides.Export.SaveFormat Pdf     Aspose.Slides.Export.SaveFormat
Aspose.Slides.Export.SaveFormat Pps     Aspose.Slides.Export.SaveFormat
Aspose.Slides.Export.SaveFormat Ppsx    Aspose.Slides.Export.SaveFormat
Aspose.Slides.Export.SaveFormat Ppt     Aspose.Slides.Export.SaveFormat
Aspose.Slides.Export.SaveFormat Pptx    Aspose.Slides.Export.SaveFormat
Aspose.Slides.Export.SaveFormat Tiff    Aspose.Slides.Export.SaveFormat
Aspose.Slides.Export.SaveFormat Xps     Aspose.Slides.Export.SaveFormat 


Any tips appreciated.


Stefan









~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338840
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to