I am trying to work on a 1.6mb ppt file, with approx 98 slides.
However the file gets modified with aspose, but cannot be opened in powerpoit after. I did have it working with smaller files, but now has stopped.
If I use the code below(which should do nothing other than load & stream the file for saving) I still get the same error.
I guess it may be file size, any one had experince with this
Thanks in advance for any help
Garry
Code--------
Imports Aspose.PowerPoint
Public Class WebForm2
Inherits System.Web.UI.Page
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
’
'Dim license As Aspose.PowerPoint.License = New Aspose.PowerPoint.License()
'license.SetLicense(“Aspose.PowerPoint.lic”)
Dim fis As System.IO.FileStream = New System.IO.FileStream(MapPath(".") + “\user\userdata\files\tuesday.ppt”, System.IO.FileMode.Open, System.IO.FileAccess.Read)
Dim pres As Presentation = New Presentation(fis)
fis.Close()
Me.Response.ContentType = “application/vnd.ms-powerpoint”
Me.Response.AppendHeader(“Content-Disposition”, “attachment; filename=testppt.ppt”)
Me.Response.Flush()
Dim st As System.IO.Stream = Me.Response.OutputStream
pres.Write(st)
Me.Response.End()
End Sub
End Class