Issue with Aspose.Metafile license

Last post 02-05-2009, 12:05 PM by nrussbach. 6 replies.
Sort Posts: Previous Next
  •  02-04-2009, 12:10 PM 163459

    Issue with Aspose.Metafile license

    I bought the Aspose Total for Java software licence version 2.2 and due to some issues during the development I downloaded the version 2.3.

    All the component are fine expcept of Aspose.Metafile. It seems that Aspose.Metafile is an evaluation version.

    How can it be possible?

     
  •  02-04-2009, 1:05 PM 163471 in reply to 163459

    Re: Issue with Aspose.Metafile license

    Hello,

    Aspose.Metafiles should work with Aspose.Total for Java license.
    If it doesn't work please send me license file for testing by following the instructions in the link below:
    http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx


    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  02-05-2009, 2:58 AM 163573 in reply to 163471

    Re: Issue with Aspose.Metafile license

    Dear Alexey,

    if you have to answer with a private message please send also a message in this forum, because the user account from which I write has been created by the client and so the associated email is not mine.

    Thanks in advance,

    Cristian

     
  •  02-05-2009, 5:00 AM 163592 in reply to 163573

    Re: Issue with Aspose.Metafile license

    Hello Cristian,

    I have tested your "Total" license file with Aspose.Metafiles and everything works fine.
    May be you imported License class from another Aspose library?

    Try to set license using full package name with class:

    com.aspose.metafiles.License lic = new com.aspose.metafiles.License();
    lic.setLicense(new FileInputStream("Aspose.Total.Java.lic"));

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  02-05-2009, 7:19 AM 163623 in reply to 163592

    Re: Issue with Aspose.Metafile license

    We do import the full package name.
    The program is in python script.

    This is the piece of code that import the packages and licenses.

    from com.aspose.slides import Presentation,Slide,Slides,License
    from com.aspose.metafiles import Metafile (it's the same behaviour if I put also here License)

    from java.lang import System

    import coreFunctionLibraryClass
    oLibrary = coreFunctionLibraryClass.coreFunctionLibrary(globals())

    ##########################
    # ASPOSE LICENSE SECTION #
    ##########################
    idx = pscriptsDir.rfind('\\')
    idx = pscriptsDir[0:idx].rfind('\\')
    collabDir = pscriptsDir[0:idx]

    #Create a stream object containing the license file
    fstream = FileInputStream(collabDir + '\lib\ext\Aspose[1].Total.Java.lic')
    #Instantiate the License class
    license= License()
    #Set the license through the stream object
    license.setLicense(fstream)
    #Closing the stream finally
    if(fstream):
        fstream.close()
    ##############################
    # END ASPOSE LICENSE SECTION #
    ##############################

    The result is that the slide are well displayed a part from the slides that contain a chart. Only in these one the trial message compares.

    Please let me know if you need addictional information.

    Best regards,
    Cristian

     
  •  02-05-2009, 8:16 AM 163642 in reply to 163623

    Re: Issue with Aspose.Metafile license

    You should set licenses for all libraries used in the application.
    In Java it will look like this:

    // Set license for Aspose.Slides
    com.aspose.slides.License lics = new com.aspose.slides.License();
    FileInputStream fstream = new FileInputStream("Aspose.Total.Java.lic");
    lics.setLicense(fstream);
    fstream.close();

    // Set license for Aspose.Metafiles
    com.aspose.metafiles.License licm = new com.aspose.metafiles.License();
    fstream = new FileInputStream("Aspose.Total.Java.lic");
    licm.setLicense(fstream);
    fstream.close();

    Name of License class is the same for all libraries but they are located in different packages.


    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  02-05-2009, 12:05 PM 163718 in reply to 163642

    Re: Issue with Aspose.Metafile license

    Thanks you very much. We were able to fix the problem.

    Best regards,
    Cristian

     
View as RSS news feed in XML