Hi
I am using VFP6 SP4
I want to make a command button to dump the screen or active window
and direct output to printer (not copy to clipboard).
when the user clicks this command button, it is the same as press key PrtSc

How can I do that ?
pls give me a hand
thanks all

Re: PrintScreen direct output to printer ? by Daniel

Daniel
Tue May 03 04:37:18 CDT 2005

!/N REGSVR32 /S DibApi32.Dll
#DEFINE PW_WINDOW 1
#DEFINE PW_CLIENT 2
#DEFINE PW_BESTFIT 1
#DEFINE PW_STRETCHTOPAGE 2
#DEFINE PW_SCALE 3
DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ;
INTEGER HWnd, ;
INTEGER fPrintArea, ;
INTEGER fPrintOpt, ;
INTEGER wxScale, ;
INTEGER wyScale, ;
STRING @ szJobName
PrintWindow(thisform.hwnd,1,1,0,0,ALLTRIM(thisform.caption))

"Eddy" <Eddy@discussions.microsoft.com> a écrit dans le message de
news:2322C1F9-402E-4523-B235-FC4DBD17869B@microsoft.com...
> Hi
> I am using VFP6 SP4
> I want to make a command button to dump the screen or active window
> and direct output to printer (not copy to clipboard).
> when the user clicks this command button, it is the same as press key
PrtSc
>
> How can I do that ?
> pls give me a hand
> thanks all
>



Re: PrintScreen direct output to printer ? by Bernd

Bernd
Tue May 03 07:52:38 CDT 2005

Hi,

I tested your code and got the error printwindow.prd not found.
Can you help me ?

Bernd


"Daniel Dumortier" <prénom.nom@qi-informatique.fr> schrieb im Newsbeitrag
news:eZkDsM8TFHA.3308@TK2MSFTNGP14.phx.gbl...
> !/N REGSVR32 /S DibApi32.Dll
> #DEFINE PW_WINDOW 1
> #DEFINE PW_CLIENT 2
> #DEFINE PW_BESTFIT 1
> #DEFINE PW_STRETCHTOPAGE 2
> #DEFINE PW_SCALE 3
> DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ;
> INTEGER HWnd, ;
> INTEGER fPrintArea, ;
> INTEGER fPrintOpt, ;
> INTEGER wxScale, ;
> INTEGER wyScale, ;
> STRING @ szJobName
> PrintWindow(thisform.hwnd,1,1,0,0,ALLTRIM(thisform.caption))
>
> "Eddy" <Eddy@discussions.microsoft.com> a écrit dans le message de
> news:2322C1F9-402E-4523-B235-FC4DBD17869B@microsoft.com...
>> Hi
>> I am using VFP6 SP4
>> I want to make a command button to dump the screen or active window
>> and direct output to printer (not copy to clipboard).
>> when the user clicks this command button, it is the same as press key
> PrtSc
>>
>> How can I do that ?
>> pls give me a hand
>> thanks all
>>
>
>



Re: PrintScreen direct output to printer ? by Christian

Christian
Tue May 03 08:07:38 CDT 2005

Hello,

i think he just typed the function call wrong (the function is registerd AS
PrintWin, not as PrintWindow)
DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ; ....

one has to call
PrintWin(....)
instead of
PrintWindow(....)

Regards
Christian



Re: PrintScreen direct output to printer ? by Bernd

Bernd
Tue May 03 08:12:00 CDT 2005

Hi Christian,
it works fine....thank you

Bernd

"Christian Ehlscheid" <christian.nospam@gmx.de> schrieb im Newsbeitrag
news:eiGN5D%23TFHA.544@TK2MSFTNGP15.phx.gbl...
> Hello,
>
> i think he just typed the function call wrong (the function is registerd
> AS
> PrintWin, not as PrintWindow)
> DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ; ....
>
> one has to call
> PrintWin(....)
> instead of
> PrintWindow(....)
>
> Regards
> Christian
>
>



Re: PrintScreen direct output to printer ? by Jeff

Jeff
Tue May 03 09:06:57 CDT 2005

Hello All,

I do not seem to have this DLL?

I am using VFP 7 SP1. Does it have some other name? Is it OS specific?
Available from someplace?

Thanks,

Jeff
"Daniel Dumortier" <prénom.nom@qi-informatique.fr> wrote in message
news:eZkDsM8TFHA.3308@TK2MSFTNGP14.phx.gbl...
> !/N REGSVR32 /S DibApi32.Dll
> #DEFINE PW_WINDOW 1
> #DEFINE PW_CLIENT 2
> #DEFINE PW_BESTFIT 1
> #DEFINE PW_STRETCHTOPAGE 2
> #DEFINE PW_SCALE 3
> DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ;
> INTEGER HWnd, ;
> INTEGER fPrintArea, ;
> INTEGER fPrintOpt, ;
> INTEGER wxScale, ;
> INTEGER wyScale, ;
> STRING @ szJobName
> PrintWindow(thisform.hwnd,1,1,0,0,ALLTRIM(thisform.caption))
>
> "Eddy" <Eddy@discussions.microsoft.com> a écrit dans le message de
> news:2322C1F9-402E-4523-B235-FC4DBD17869B@microsoft.com...
>> Hi
>> I am using VFP6 SP4
>> I want to make a command button to dump the screen or active window
>> and direct output to printer (not copy to clipboard).
>> when the user clicks this command button, it is the same as press key
> PrtSc
>>
>> How can I do that ?
>> pls give me a hand
>> thanks all
>>
>
>



Re: PrintScreen direct output to printer ? by Daniel

Daniel
Tue May 03 09:38:24 CDT 2005

Hello,
take a look there : http://fox.wikis.com/wc.dll?Wiki~PrintWindow~VFP


--
ActiveForm à vous...
"Jeff Grippe" <jgrippe@hilldun.com> a écrit dans le message de
news:117f1cv7eflmn73@news.supernews.com...
> Hello All,
>
> I do not seem to have this DLL?
>
> I am using VFP 7 SP1. Does it have some other name? Is it OS specific?
> Available from someplace?
>
> Thanks,
>
> Jeff
> "Daniel Dumortier" <prénom.nom@qi-informatique.fr> wrote in message
> news:eZkDsM8TFHA.3308@TK2MSFTNGP14.phx.gbl...
> > !/N REGSVR32 /S DibApi32.Dll
> > #DEFINE PW_WINDOW 1
> > #DEFINE PW_CLIENT 2
> > #DEFINE PW_BESTFIT 1
> > #DEFINE PW_STRETCHTOPAGE 2
> > #DEFINE PW_SCALE 3
> > DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ;
> > INTEGER HWnd, ;
> > INTEGER fPrintArea, ;
> > INTEGER fPrintOpt, ;
> > INTEGER wxScale, ;
> > INTEGER wyScale, ;
> > STRING @ szJobName
> > PrintWindow(thisform.hwnd,1,1,0,0,ALLTRIM(thisform.caption))
> >
> > "Eddy" <Eddy@discussions.microsoft.com> a écrit dans le message de
> > news:2322C1F9-402E-4523-B235-FC4DBD17869B@microsoft.com...
> >> Hi
> >> I am using VFP6 SP4
> >> I want to make a command button to dump the screen or active window
> >> and direct output to printer (not copy to clipboard).
> >> when the user clicks this command button, it is the same as press key
> > PrtSc
> >>
> >> How can I do that ?
> >> pls give me a hand
> >> thanks all
> >>
> >
> >
>
>



Re: PrintScreen direct output to printer ? by Jeff

Jeff
Tue May 03 13:37:18 CDT 2005

This DLL appears to be from 1995 and doesn't seem to work with Win XP at
all.

Is there something that I'm doing wrong?

Thanks,
Jeff

"Daniel Dumortier" <prénom.nom@qi-informatique.fr> wrote in message
news:%232FgK1%23TFHA.3184@TK2MSFTNGP15.phx.gbl...
> Hello,
> take a look there : http://fox.wikis.com/wc.dll?Wiki~PrintWindow~VFP
>
>
> --
> ActiveForm à vous...
> "Jeff Grippe" <jgrippe@hilldun.com> a écrit dans le message de
> news:117f1cv7eflmn73@news.supernews.com...
>> Hello All,
>>
>> I do not seem to have this DLL?
>>
>> I am using VFP 7 SP1. Does it have some other name? Is it OS specific?
>> Available from someplace?
>>
>> Thanks,
>>
>> Jeff
>> "Daniel Dumortier" <prénom.nom@qi-informatique.fr> wrote in message
>> news:eZkDsM8TFHA.3308@TK2MSFTNGP14.phx.gbl...
>> > !/N REGSVR32 /S DibApi32.Dll
>> > #DEFINE PW_WINDOW 1
>> > #DEFINE PW_CLIENT 2
>> > #DEFINE PW_BESTFIT 1
>> > #DEFINE PW_STRETCHTOPAGE 2
>> > #DEFINE PW_SCALE 3
>> > DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ;
>> > INTEGER HWnd, ;
>> > INTEGER fPrintArea, ;
>> > INTEGER fPrintOpt, ;
>> > INTEGER wxScale, ;
>> > INTEGER wyScale, ;
>> > STRING @ szJobName
>> > PrintWindow(thisform.hwnd,1,1,0,0,ALLTRIM(thisform.caption))
>> >
>> > "Eddy" <Eddy@discussions.microsoft.com> a écrit dans le message de
>> > news:2322C1F9-402E-4523-B235-FC4DBD17869B@microsoft.com...
>> >> Hi
>> >> I am using VFP6 SP4
>> >> I want to make a command button to dump the screen or active window
>> >> and direct output to printer (not copy to clipboard).
>> >> when the user clicks this command button, it is the same as press key
>> > PrtSc
>> >>
>> >> How can I do that ?
>> >> pls give me a hand
>> >> thanks all
>> >>
>> >
>> >
>>
>>
>
>



Re: PrintScreen direct output to printer ? by TonySper

TonySper
Tue May 03 19:51:01 CDT 2005

Bernd,
wrote a small form, ran it and got the error that thisform can only
be used in a method?? Can someone help. This looks like a nice routing
that I would like to use.
TonySper


"Bernd Dieterle" <dieterle@ehret.com> wrote in message
news:d57tb1$h6c$02$1@news.t-online.com...
Hi Christian,
it works fine....thank you

Bernd

"Christian Ehlscheid" <christian.nospam@gmx.de> schrieb im Newsbeitrag
news:eiGN5D%23TFHA.544@TK2MSFTNGP15.phx.gbl...
> Hello,
>
> i think he just typed the function call wrong (the function is
> registerd
> AS
> PrintWin, not as PrintWindow)
> DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ; ....
>
> one has to call
> PrintWin(....)
> instead of
> PrintWindow(....)
>
> Regards
> Christian
>
>




Re: PrintScreen direct output to printer ? by TonySper

TonySper
Wed May 04 08:56:42 CDT 2005

Dumb question. Had a brain drain. Procedure works fine when put in the
command button.
TonySper

"TonySper" <tsperduti@bellsouth.net> wrote in message
news:V%Ude.753$Vn.198@bignews3.bellsouth.net...
Bernd,
wrote a small form, ran it and got the error that thisform can only
be used in a method?? Can someone help. This looks like a nice routing
that I would like to use.
TonySper


"Bernd Dieterle" <dieterle@ehret.com> wrote in message
news:d57tb1$h6c$02$1@news.t-online.com...
Hi Christian,
it works fine....thank you

Bernd

"Christian Ehlscheid" <christian.nospam@gmx.de> schrieb im Newsbeitrag
news:eiGN5D%23TFHA.544@TK2MSFTNGP15.phx.gbl...
> Hello,
>
> i think he just typed the function call wrong (the function is
> registerd
> AS
> PrintWin, not as PrintWindow)
> DECLARE INTEGER PrintWindow IN DibApi32 AS PrintWin ; ....
>
> one has to call
> PrintWin(....)
> instead of
> PrintWindow(....)
>
> Regards
> Christian
>
>