MOTOBIT.COM - ASP upload, IIS utility Compress Property of DBF class

Property | Member of  RSConvert.DBF | Changes | Purchase | Download

Description

Compress method or command line to real-time compress output file.

Syntax

vCompress = DBF.Compress
DBF.Compress = vCompress

Returns

String

Remarks

Predefined values :

Zero length string - no compress
1 - pkzip, pkzip.exe -a <output> <input>
2 - arj, arj.exe a -e <output> <input>

Examples

Compress outgoing file by PKZIP.EXE

  'Create Recordset and DBF objects
  Set ADORS = CreateObject("ADODB.Recordset")
  Set DBF = CreateObject("RSConvert.DBF")
  
  ADORS.Open "Payments", "DSN=ADOSamples"
  
  DBF.Compress = 1
  'Write zipped DBF file to the client 
  Response.BinaryWrite DBF.GetFile(ADORS)

Other links for Compress

Methods of DBF class

GetFile, SaveRS

Properties of DBF class

Compress, CurrencyDecimal, CurrencyWidth, DoubleDecimal, DoubleWidth, IntegerWidth, LongVarCharWidth, RowCount, SingleDecimal, SingleWidth, TempDirectory

RSConvert.DBF

Object for converting DAO or ADO recordset to the DBF file. It enables direct output of DBF files from the ASP page.

RSConvert

      Recordset converter is a library for converting DAO or ADO recordsets to MDB or DBF files. It enables direct binary output of MDB or DBF files from ASP pages with one row of code. The object also supports on-the-fly compression by zip/arj.

© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz