Login  
Search All Forums
Dart Home | PowerTCP Zip Compression for Active | Custom Development Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
AuthorForum: PowerTCP Zip Compression for ActiveX
Topic: Type mismatch in ASP page
User190

Posts: 1
Member Since: 03/14/02
posted March 14, 2002 4:05 AM

Trying the ASP example in the Zip method of the Filestore object, i get the following error:

Microsoft VBScript runtime error(0x800A000D) Type mismatch: 'Zip'

The error refers to the line:
 Zip1.Filestore.Zip(stream)

Does anybody know the reason for this? I have tried the control with Visual Basic and it works fine.

Thanks in advance



K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 15, 2002 1:24 PM


Hi,
In Asp you cannot leave out an optional parameter when it is an object. Therefore, if you create a SpanSettings object, and use it as the second parameter, you should be ok.
For example:
  dim span
  set span = Server.CreateObject("Dart.SpanSettings.1")
  Zip1.FileStore.Zip result, span

-ken

K M Drake
Dart Tech Support
grinder

From: Newark, NJ USA
Posts: 1
Member Since: 06/26/02
posted June 26, 2002 9:26 AM

i experienced this same problem because the vbscript example that is included in the help documentation does not use the Span object. the example on the dart.com website does use it, however. it might be a good idea for the guys at dart to clean up or clarify the documentation a bit. there are also several typos in the comment code in the help files that distort the meaning of some of the text.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 26, 2002 5:05 PM

Hi,
Please feel free to give specific examples of these ambiguities in the docs, and we will make the changes.
Thanks,
-ken
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX