home *** CD-ROM | disk | FTP | other *** search
- on initprinter
- global printer, gPropFont, gMonoFont, hook
- if the machineType = 256 then
- set gPropFont to "arial"
- set gMonoFont to "courier new"
- if not objectp(printer) then
- openXLib(the moviePath & "pmatic.dll")
- set printer to pmatic(mnew)
- printer(mRegister, "10049979-791")
- end if
- else
- if not objectp(printer) then
- openXLib(the moviePath & "printomatic.xobj")
- set printer to PrintOMatic(mnew)
- printer(mRegister, "10552447-123")
- end if
- end if
- if not objectp(printer) then
- alert("There is no currently selected printer. Printing features will be disabled." & RETURN & RETURN & "Error code = " & string(printer))
- end if
- if not objectp(hook) then
- set hook to framehook(mnew)
- set the perFrameHook to hook
- end if
- end
-
- on printcard
- global printer
- unLoad()
- initprinter()
- if not objectp(printer) then
- alert("There is no currently selected printer. Printing features are disabled.")
- else
- cursor(4)
- printer(mReset)
- printer(mNewPage)
- printer(mStagePicture, 0, 0, 480, 360)
- printer(mPrint)
- cursor(-1)
- end if
- stopprint()
- end
-