| Title: | LinkWorks APO |
| Moderator: | HLDE01::SYSTEM |
| Created: | Tue Feb 22 1994 |
| Last Modified: | Wed Jun 04 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 476 |
| Total number of notes: | 1817 |
Hi, all.
I hope someone has an answer to this:
- LNX 307 SDK contained the Print Tool, which we use in a customer of
ours' LNX environment.
- Such environment slowly migrates to Windows 95.
- I'd like to make the tool work in win95, too, but I don't know how
"things" are printed in this environment. Is there any (not C/C++) call
to some print method or what?
Thanx in advance,
Andrea
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 471.1 | IJSAPL::MONNINK_H | Wed Mar 26 1997 10:17 | 24 | ||
Andrea,
The following method should do it for you:
ObjectWithDocument::PM:ExtPrint(Filedesc path)
{
Integer hWnd;
Integer rc;
rc = extern(path)
for WSTYPE_DOSWIN = MEXT_DLL("\"print.dll\".PrintDoc(IN String)");
extern(0, PM:PrintCmd, path, 0, PM:Directory, 2)
for WSTYPE_W95W32 = MEXT_DLL("\"shell32.dll\".ShellExecuteA(IN
Integer, IN String, IN String, IN String, IN String, IN Integer)")
for WSTYPE_NTIW32 = MEXT_DLL("\"shell32.dll\".ShellExecuteA(IN
Integer, IN String, IN String, IN String, IN String, IN Integer)");
}
Han
| |||||