home *** CD-ROM | disk | FTP | other *** search
- on PrintoMaticInit_xobject
- global printer, gpropfont, gmonofont, gxobjfile, Xtrapath
- if the machineType = 256 then
- set gpropfont to "arial"
- set gmonofont to "courier new"
- set gxobjfile to "pmatic.dll"
- else
- set gpropfont to "helvetica"
- set gmonofont to "courier"
- set gxobjfile to "pmatic.xobj"
- end if
- if voidp(Xtrapath) then
- set Xtrapath to EMPTY
- end if
- if not objectp(printer) then
- openXLib(Xtrapath & gxobjfile)
- set printer to PrintOMatic(mnew)
- end if
- if not objectp(printer) then
- alert("There is no currently selected printer. Printing features are disabled.")
- else
- printer(mRegister, "PMAT130-135-01241")
- end if
- end
-