Allan,
This code tested on Win95/Win98/W2K a WinXP with VFP 5.0/6.0/7.0
MartinJ
>Martin,
>
>Would you happen to know if this code will work on VFP5 & VFP7 on W95,98,2000 and XP HOME/PRO?
>
>>Hi Allan,
>>
>> Try this code:
>>MartinJ
>>
>>DECLARE INTEGER SetParent IN USER32 INTEGER, INTEGER
>>DECLARE INTEGER GetParent IN USER32 INTEGER
>>...
>>
>>
>>
>>>This project is in VFP 5.
>>>I tried the steps in the MS KB.
>>>I paste and run the first prg. I right click on the preview title and customize pops up. The print preview is not on the categories in the customization pop up.
>>>
>>>>See
HOWTO: Remove Buttons from the Print Preview Toolbar mskb #
Q317466 and
Providing Toolbars in Your App FAQ #7876.
>>>>
>>>>>Is it possible to disable the printer icon in a print preview * or * have the output to the printer not print?
>>>>>I am trying to disable the ability to print (preview is OK) if my software is in DEMO mode versus a registered version.
>>>>>I tried 'set printer to nul' but the print icon still sends the output to the printer.
>>>>>Thanks in advance.