home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / clip4win / clip4win.exe / C4W30E.HUF / SOURCE / RRWAPI.PRG < prev    next >
Text File  |  1995-05-04  |  5KB  |  128 lines

  1. /////////////////////////
  2. //
  3. //    rrwapi.prg - (partial) API for R & R Report Writer Xbase version 6.0
  4. //
  5. //    Copyright (C) 1995 Skelton Software, Kendal Cottage, Hillam, Leeds LS25 5HP, UK.
  6. //    All Rights Reserved.
  7. //
  8. //    See rrwrep.prg - and link these with it.
  9. //
  10. /////////////////////////
  11.  
  12. //    Thanks to Rick Spence for the originals of these!
  13.  
  14. #include "dll.ch"
  15.  
  16.  
  17. _DLL Func ChoosePrinter(hReport    AS SHORT, ;
  18.                         Printer    AS PTR,   ;
  19.                         prSize     AS SHORT, ;
  20.                         Port       AS PTR,   ;
  21.                         poSize     AS SHORT) ;
  22.           AS LOGIC PASCAL:RReport.ChoosePrinter
  23.  
  24. _DLL Func ChooseReport(AppName AS PTR,   ;
  25.                        LibName AS PTR,   ;
  26.                        RepName AS PTR,   ;
  27.                        Size    AS SHORT) ;
  28.           AS SHORT PASCAL:RReport.ChooseReport
  29.  
  30. _DLL Func EndReport(hReport AS SHORT)                    ;
  31.           AS  LOGIC  PASCAL:RReport.EndReport 
  32.  
  33. _DLL Func EndRunTimeInstance()  ;
  34.           AS LOGIC PASCAL:RReport.EndRunTimeInstance
  35.  
  36. _DLL Func ExecRunTime(hReport AS SHORT,; 
  37.                       bWait AS LOGIC,;
  38.                       cmdShow AS SHORT,;
  39.                       pErrCode REF PTR,;
  40.                       pPageCount REF PTR,;
  41.                       pErrMess REF PTR,;
  42.                       siErrSize AS SHORT)                ;
  43.           AS  LOGIC  PASCAL:RReport.ExecRunTime
  44.  
  45. _DLL Func GetErrorInfo(@pszMsg  AS PTR,   ;
  46.                        mSize   AS SHORT, ;
  47.                        @ptrCode AS PTR)   ;
  48.           AS LOGIC PASCAL:RReport.GetErrorInfo
  49.  
  50. _DLL Func InitRunTimeInstance() ;
  51.           AS LOGIC PASCAL:RReport.InitRunTimeInstance
  52.  
  53. _DLL Func SetCopies(hReport AS SHORT,;  
  54.                     iCopies AS SHORT)        ;
  55.           AS  LOGIC  PASCAL:RReport.SetCopies
  56.  
  57. _DLL Func SetDisplayStatus(hReport AS SHORT, ;
  58.                            lDisp   AS LOGIC) ;
  59.           AS LOGIC PASCAL:RReport.SetDisplayStatus
  60.  
  61. _DLL Func SetFilter(hReport AS SHORT,;
  62.                     pFilter AS PTR) ;      
  63.           AS LOGIC PASCAL:RReport .SetFilter 
  64.  
  65. _DLL Func SetFilterUsage(hReport AS SHORT, ;
  66.                          cVal    AS BYTE)  ;
  67.           AS LOGIC PASCAL:RReport.SetFilterUsage
  68.  
  69. _DLL Func SetHighScope(hReport AS SHORT,;
  70.                        pHiScope AS PTR) ;
  71.        AS LOGIC PASCAL:RReport.SetHighScope
  72.  
  73. _DLL Func SetIndexExtension(hReport AS SHORT,;  
  74.                             nExtIdx   AS SHORT) ;
  75.           AS  LOGIC PASCAL:RReport.SetIndexExtension 
  76.  
  77. _DLL Func SetLibrary(hReport AS SHORT,;  
  78.                      pLib AS PTR)    ;
  79.           AS  LOGIC PASCAL:RReport.SetLibrary
  80.  
  81. _DLL Func SetLowScope(hReport AS SHORT,; 
  82.                       pLoScope AS PTR) ;
  83.           AS LOGIC PASCAL:RReport.SetLowScope 
  84.  
  85. _DLL Func SetMasterIndexInfo(hReport AS SHORT,;  
  86.                              pPath AS PTR    ,;
  87.                              cType AS WORD    ,;
  88.                              pTag   AS PTR    )   ;
  89.           AS  LOGIC PASCAL:RReport.SetMasterIndexInfo 
  90.  
  91. _DLL Func SetMasterTableName(hReport AS SHORT,;  
  92.                              pTable AS PTR);
  93.           AS  LOGIC PASCAL:RReport.SetMasterTableName
  94.  
  95. _DLL Func SetOutputDest(hReport AS SHORT, ;
  96.                         cDest AS BYTE)    ;
  97.           AS LOGIC PASCAL:RReport.SetOutputDest
  98.  
  99. _DLL Func SetOutputFile(hReport AS SHORT,;  
  100.                         pOutfile AS PTR);
  101.           AS  LOGIC  PASCAL:RReport.SetOutputFile
  102.  
  103. _DLL Func SetPrinter(hReport AS SHORT,;
  104.                      pPrinter AS PTR)                           ;
  105.       AS LOGIC PASCAL :RReport.SetPrinter                     
  106.  
  107. // was SetPrinterPort(), but that name is not unique in 1st 10 chars
  108. _DLL Func SetPrintPort(hReport AS SHORT,;
  109.                          pPort AS PTR)                       ;
  110.       AS LOGIC PASCAL:RReport.SetPrinterPort         
  111.  
  112. _DLL Func SetReportPick(hReport AS SHORT,;
  113.                         cPickFlag AS BYTE)  ;
  114.           AS  LOGIC  PASCAL:RReport.SetReportPick
  115.  
  116. _DLL Func SetScopeUsage(hReport AS SHORT,;
  117.                         cScopeFlag AS BYTE); 
  118.           AS  LOGIC  PASCAL:RReport.SetScopeUsage  
  119.  
  120. _DLL Func SetUserParam(hReport AS SHORT,;
  121.                        pName AS PTR,;
  122.                        pValue AS PTR)                    ;
  123.       AS LOGIC PASCAL:RReport.SetUserParam    
  124.   
  125. _DLL Func SetWinParentHandle(hReport AS SHORT, ;
  126.                              hParent AS SHORT) ;
  127.           AS LOGIC PASCAL:RReport.SetWinParentHandle
  128.