home *** CD-ROM | disk | FTP | other *** search
-
- Documentation for XTAL.DLL
-
- August 28, 1993
-
-
- XTALUDL.DLL by Robert J. Johnston, Burlingame, CA, USA.
- XTALUDL.DLL Copyright (c) 1993 Robert J. Johnston. All rights reserved.
- No charge, and you can distribute XTAL.DLL free of charge to others.
-
-
- Files uploaded:
-
- XTALUDL.DLL
-
- XDLLDEMO.MAK (Demo source and executable)
- DEMODLL.FRM
- DEMODLL2.FRM
- DEMODLL3.FRM
- DEMODLL.BAS
- XDLLDEMO.EXE
-
- XTAL_DLL.DOC (This file)
-
-
- Install XTALUDL.DLL in your WINDOWS\SYSTEM subdirectory. Make sure you don't
- have copies hanging around in other other paths or in the demo directory.
-
- Install the demo, XDLLDEMO.EXE, in a directory of your choice. Run the demo,
- XDLLDEMO.EXE. Source code for XDLLDEMO.EXE is included--modify, copy as
- you wish.
-
- When selecting a directory for the "Report Title" demo, you must select
- a file in the common dialog box.
-
-
- XTALUDL.DLL declarations for Visual Basic calls:
-
- Note: None of the string parameters require a null terminating Chr$(0).
-
- Declare Sub GetSetLabelDimensions Lib "XTALUDL.DLL" (ByVal lpszFileName$, lpDimensions As LABEL_DIMENSIONS, ByVal nAction%, lpErrcode%)
-
- lpszFileName$: full path of a Crystal Report file (.rpt) to modify or read.
- lpszDimensions: defined type containing label dimension data (see Demo).
- nAction% : 1 to get dimensions; 2 to set dimensions.
- lpErrcode% : programmer defined codes.
-
- Get the dimensions first, then change the dimensions desired, and
- finally pass back to set the dimensions. Values of zero are not
- ignored. This lets you have more control.
-
- It is possible to use this same sub to get and set the printer margins
- of regular reports. In this case, the label dimensions will be ignored,
- although you will get an error code of 32003. If a regular report
- was never set up for a printer ("Set Printer" menu item in Crystal
- Reports), then you won't be able to get or set printer margins, and you
- will get error code 32002. If you get error code 32002, then you
- know the report is not set up for labels.
-
- You will get error code 32003 if the report was designed for labels but
- no fields have been placed on the report.
-
-
- Declare Sub GetReportTitle Lib "XTALUDL.DLL" (ByVal lpszFileName$, ByVal lpszReportTitle$, ByVal lpszReportComment$, lpErrcode%)
-
- lpszFileName$: full path name of a Crystal Report file (.rpt) to read.
- lpszReportTitle$: String to contain title passed back.
- Maximum length of string is 512.
- lpszReportComment$: String to contain comment passed back. Upon return,
- this will be blank if there was no comment. No error
- code is returned if there isn't a comment.
- Maximum length of string is 1024.
- lpErrcode%: programmer defined codes.
-
-
- Declare Sub SetFontAll Lib "XTALUDL.DLL" (ByVal lpszFileName$, ByVal lpszFaceName$, ByVal nFontsize%, lpErrcode%)
-
- lpszFileName$: full path name of a Crystal Report file (.rpt) to modify.
- lpszFaceName$: font facename to apply to all objects. No change is made
- if you pass a null string, "". If you pass anything
- else and the font isn't supported you will get an
- error. Make sure to observe upper and lowercase--
- check the font common dialog for spellings.
- nFontSize%: font size to apply to all objects. If value is 0, then
- font size is not modified. Fontsize is modified even if
- facename is not modified or facename generates an error.
- lpErrcode%: programmer defined codes.
-
-
- Error codes returned from XTALUDL.DLL:
-
- All sub's:
- 0: No errors detected.
- 32000 : Not a Crystal Report (or a version not supported).
- 32001 : Bad path or file name. Couldn't get handle to file.
-
- GetSetLabelDimensions:
- 32002 : No margin info. Can't set, or nothing to get.
- 32003 : No label info. Can't set, or nothing to get.
-
- SetFontAll:
- 32010 : Couldn't set fontface: no printer in WIN.INI or couldn't get
- a device context for printer, or invalid facename passed.
-
-
- XTALUDL.DLL was designed with Microsoft Visual C++ 1.00.
-
-
- Robert J. Johnston
- Compuserve: 71611, 1370
-
-