Aspose.Slides Hello World Example for Classic ASP

Hi,
Is there a Slides Hello World example written in Classic ASP? I tried editing the Cells example found here: https://forum.aspose.com/Wiki/default.aspx/Aspose.Cells/AccessingComponentFromCOMClients.html but I get an error saying:

Error Type:

Microsoft VBScript runtime (0x800A01AD)
ActiveX component can’t create object: 'Aspose.Slides.Presentation’
The line causing this error is:

Set ppt = CreateObject(“Aspose.Slides.Presentation”)
Is there something that I need to do with ActiveX?

Thank you.

Sorry, classic ASP and ActiveX are not supported by Aspose.Slides.
The only one workaround for you is write own .Net wrapper.
Do all work there and call it from ASP.

Do you have any examples of calling the .NET code from classic ASP?

Thank you.

As I wrote we don’t support classic ASP and don’t have such examples.
I’m sure you can find many examples in the google.
Also if I’m not mistaken I saw something similar on the www.codeproject.com.

Thanks for the quick replies. This is my first attempt with anything .NET related, so thank you for bearing with me. Is there a sample file that I can use in a .aspx page?

Thank you.

After installing Aspose.Slides you can find 4 asp.net demos on the disk.
Also one more large Northwind demo available as separate download.

Hi again,

I’m trying to test out the demos that came with the installer, but I’m encountering this error when viewing the page in my browser:

Error 1 It is an error to use a section registered as allowDefinition=‘MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Program Files\Aspose\Aspose.Slides\Demos\WebForms\Ppt2Pdf\Web.config 46
I think I have the virtual directory “aspose” set up as an application. When I right click on the aspose virtual directory, under Application Settings, the name is filled out, and Execute Permissions are set to Scripts only. Is there any further configuration I need to do?

I’ve also gone in to Visual Studio (I actually have “Visual Web Developer 2005 Express Edition”, if that matters) and built the site. I get the same error in the error list. The line with the error says:

What am I doing wrong? Embarrassed [:$] Thanks again for your help!

FYI, I’ve also followed the instructions under Referencing the Component found here:
Aspose Documentation

It’s better and more safe to copy whole directory with demo to \Inetpub\wwwroot<br>instead of creating virtual directory. By the way try to set name of app to “Aspose.Slides.WF.PPT2PDF”.

Google finds many links to the same questions.
In most cases it’s because wrong created (or not created at all) app.

Hi,

I’m posting the step-by-step instructions given to me so others can see, in case they’re having similar problems. These steps worked great for me to get the demo up and running. The demo I used was found in C:\Program Files\Aspose\Aspose.Slides\Demos\WebForms\Template after installing Aspose.Slides.

  1. In C:\Inetpub\wwwroot, create a directory called "Aspose.Slides.Template"
  2. Copy the contents of C:\Program Files\Aspose\Aspose.Slides\Demos\WebForms\Template (not the entire Demos folder or even the Template folder – just the files inside of Template) into the newly created C:\Inetpub\wwwroot\Aspose.Slides.Template
  3. Open IIS, right click on the Aspose.Slides.Template directory, and click Properties
  4. On the Directory tab, click the Create button to create the Application. The name should fill in automatically. When you click okay, the icon for this directory should change to the application icon.
  5. Open Visual Studio. I used Visual Web Developer 2005 Express Edition, found here: http://msdn.microsoft.com/vstudio/express/default.aspx.
  6. Click File > Open Web Site (this may differ on other versions of VS). Select the Aspose.Slides.Template directory and click Open.
  7. Build the application by clicking Build > Build Page (this may differ on other versions of VS).
  8. Direct your browser to http://localhost/Aspose.Slides.Template/Default.aspx and you should now see the demo in action.
Thanks, Tyumen!
alcrus:
Sorry, classic ASP and ActiveX are not supported by Aspose.Slides.
The only one workaround for you is write own .Net wrapper.
Do all work there and call it from ASP.


I have a PPT slideshow containing ActiveX components that cannot be split into its individual slides. Is this simply because ActiveX isn't supported (as was mentioned above 3 years ago), or should I be looking for a more subtle reason for the failure?