How to programmatically fight with WPS:Drag & Drop of .dev and printers

From EDM2
Revision as of 12:02, 12 November 2016 by Ak120 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
<< .HLP not shown in view.exe -- Index -- Start a VIO window with a changed font size >>

If you drag and drop a printer file it will assume you want to install it. I don't know the answer to your question though, but am also curios to know. I would just drop to the command line & copy it from there.

When I responded to Timur's original posting, I suggested he go to the "Become" page of the file's notebook and change its class to WPDataFile. Contrary to my normal practice, I didn't fully test the results and was later reminded why I (almost) always test before posting: when I went to drag my test file the next day, it wouldn't budge. Even though the object's class had changed, its "style" settings hadn't. The following REXX script fixes that. Just replace "C:\junk\test.drv" with the name of your problem file, then run it.

Put this in Boilerspace template, see Open View IDs for DEFAULTVIEW=4:

call ReportRC(SysSetObjectData("C:\junk\test.drv",
              "NoMove=NO;NoLink=NO;NoCopy=NO;NoDrag=NO;DEFAULTVIEW=4;"))

BTW... do *not* move a real printer-driver file if you've installed one of the printers it supports.


<< .HLP not shown in view.exe -- Index -- Start a VIO window with a changed font size >>