Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Error 387

Sort Posts: Previous Next
  •  08-18-2008, 2:21 PM Post no. 14137

    Error 387

    I evaluate the activex version 6.1.7557 with visual basic 6 and XP Pro SP2.

    I want to zip and delete some files from a folder but I get the error 387 "Set not permitted" when i set the property "DeleteZippedFiles" to TRUE.

    Does someone have any hints why the property cant be changed? 

    thx

    Max 

  •  08-18-2008, 8:22 PM Post no. 14181 in reply to 14137

    Re: Error 387

    Is it the only property on which you get this error?  Do you set your license key in code before using the library, that is, call xZip.License("Your license key here")?

     


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  08-19-2008, 3:51 AM Post no. 14186 in reply to 14181

    Re: Error 387

    André:
    Is it the only property on which you get this error?

    Yes.I use this source code:

    40          XceedZip1.ZipFilename = "c:\test\backuptest.zip"
    50          XceedZip1.ProcessSubfolders = True
    60          XceedZip1.BasePath = "c:\test\"
    70          XceedZip1.PreservePaths = True
    80          XceedZip1.CompressionLevel = xclMedium
    90          XceedZip1.EncryptionPassword = ""
    100         XceedZip1.DeleteZippedFiles = True
    ....

    The error occurs at line 100.

     

    André:
    Do you set your license key in code before using the library, that is, call xZip.License("Your license key here")?

    Yes, i use the license-function with my trial code at the Initialize-function of my main form.



     

  •  08-20-2008, 6:57 PM Post no. 14273 in reply to 14186

    Re: Error 387

    Do you set the EncryptionMethod property somewhere in your code?  If so, the problem is most likely the XceedZip1.EncryptionPassword = "" line, since in trial mode, the password must be set to "This is a trial password" due to export restrictions to some countries.  When the password is set to another value, the "Set not permitted" error will be thrown (http://doc.xceedsoft.com/products/XceedZip/EncryptionPassword_property.html).

    Can you remove XceedZip1.EncryptionPassword = "" and see if it works?


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  08-21-2008, 5:23 AM Post no. 14283 in reply to 14273

    Re: Error 387

    I use 2 functions at my app for 2 different zip jobs. Every function use the same zip-control on the form.

    The 1. job should zip some files with a aes protection.

    The 2. job should zip some files without any password protection.

    I thought i can reset the password protection of the 1. job when i use XceedZip1.EncryptionPassword = "".

    How can i reset the password protection of the 1. job? Should i place a second zip control on the form for the 2. job?

     

  •  08-21-2008, 12:56 PM Post no. 14326 in reply to 14283

    Re: Error 387

    You should be able to reset the EncryptionPassword to "", and it should create a file that is not encrypted.  I must say that I do not reproduce your issue here.  If I encrypt a file (using a trial license) with the "This is a trial password", and then set it back to "", it works fine.

    Can you try to see if setting the EncryptionMethod back to the default value (xemCompatible) and then setting back the password to "" would solve the issue?

     


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  08-22-2008, 3:37 AM Post no. 14355 in reply to 14326

    Re: Error 387

    Well, the code line with number 90 and XceedZip1.EncryptionPassword = "" is not really my problem. I get the error #387 at the line 100 with the code XceedZip1.DeleteZippedFiles = True. Is there any case why this function cant be set?
  •  08-25-2008, 3:08 PM Post no. 14472 in reply to 14355

    Re: Error 387

    No, it should always be set-able.  The only time this error is returned is in the scenario I described for the EncryptionPassword property.  Since it is the line that follows the EncryptionPassword property, we think that the EncryptionPassword line is the one on which the error happens, but the debugger reports it on the following line.  I have seen cases where this happens, though I don't remember in which scenario it did.

    I wonder what would happen if you move DeleteZippedFiles before EncryptionPassword?

     


    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.