Objectmix
Tags Register Mark Forums Read

Screen Dump to File : Clipper

This is a discussion on Screen Dump to File within the Clipper forums in Programming Languages category; Dirk > Has someone a solution for this problem ? Simply don't allow the window outside the bounds of the screen real estate. You can always reposition it inside the screen bounds before printing, put it back when done. CYA Steve...


Object Mix > Programming Languages > Clipper > Screen Dump to File

Clipper Clipper Programming

Reply

 

LinkBack Thread Tools
  #11  
Old 11-04-2008, 10:33 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

Dirk

> Has someone a solution for this problem ?

Simply don't allow the window outside the bounds of the screen real estate.

You can always reposition it inside the screen bounds before printing, put
it back when done.

CYA
Steve


  #12  
Old 11-09-2008, 12:19 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

"Stephen Quinn" <stevejqNO@SPbigpond.AMnet.au> wrote in
news:VWZPk.11088$sc2.5062@news-server.bigpond.net.au:

Geoff
I'd tryed your sample
all is printed only may CustomControl is not, what can be the reasen.
I'm drawing there some single graphs (with moveto,lineto).
only this is left out.

Matthias
  #13  
Old 11-09-2008, 04:15 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

Interesting.

Ok, I'm not sure but I'll tell you in about a week because I am doing
exactly the same thing right now. It shouldn't make any difference but I
will be checking.

Geoff


"Matthias Mayer" <Matthias.Mayer@T-Online.de> wrote in message
news:Xns9B51B2491730FMayerMBISDE@127.0.0.1:

> "Stephen Quinn" <stevejqNO@SPbigpond.AMnet.au> wrote in
> news:VWZPk.11088$sc2.5062@news-server.bigpond.net.au:
>
> Geoff
> I'd tryed your sample
> all is printed only may CustomControl is not, what can be the reasen.
> I'm drawing there some single graphs (with moveto,lineto).
> only this is left out.
>
> Matthias



__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3597 (20081108) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


  #14  
Old 11-09-2008, 04:54 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

Matthias,

I had this problem too. It has something to do with the way windows of
VO hadles shapes like line, rectangle etc.
I did not get it right.

Now I'm useing very small fixed text controls (with the right bacgground
color) that I build on the fly and you do not see the difference with lines.

It was more work but at least they are part of the screendump now.

John

Matthias Mayer schreef:
> "Stephen Quinn" <stevejqNO@SPbigpond.AMnet.au> wrote in
> news:VWZPk.11088$sc2.5062@news-server.bigpond.net.au:
>
> Geoff
> I'd tryed your sample
> all is printed only may CustomControl is not, what can be the reasen.
> I'm drawing there some single graphs (with moveto,lineto).
> only this is left out.
>
> Matthias

  #15  
Old 11-09-2008, 05:38 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

I'v to print a lot

Matthias
  #16  
Old 11-10-2008, 02:04 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

Matthias,

I think that building one METHOD DrawLine that takes the same parameters
as drawing a line will do the job.
After you've made the method converting many lines to this method call
is not much work.

It all depends on your need to print to a (JPG) file.

John


Matthias Mayer schreef:
> I'v to print a lot
>
> Matthias

  #17  
Old 11-10-2008, 05:21 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

I've solved that problem.

You just need to make sure that you get the bitmap without erasure.

Geoff


"Matthias Mayer" <Matthias.Mayer@T-Online.de> wrote in message
news:Xns9B51B2491730FMayerMBISDE@127.0.0.1:

> "Stephen Quinn" <stevejqNO@SPbigpond.AMnet.au> wrote in
> news:VWZPk.11088$sc2.5062@news-server.bigpond.net.au:
>
> Geoff
> I'd tryed your sample
> all is printed only may CustomControl is not, what can be the reasen.
> I'm drawing there some single graphs (with moveto,lineto).
> only this is left out.
>
> Matthias



__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3600 (20081110) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


  #18  
Old 11-11-2008, 07:16 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File


Hi

I tried this sample (no FabPaint exemple):

>>> METHOD WindowToPicture(uFileName, nLeft, nTop, nWidth, nHeight )


but i missed the function WriteDIB( cFileName, hDIB ), has anybody
the source ?

the first sample
>> It is based on FabPaint and so you need to have that DLL


is this library free?

Mike

  #19  
Old 11-11-2008, 12:10 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Screen Dump to File

Mike,

This is the declaration of the FabPaint function to save to a DIB file.

_DLL FUNCTION DIBSaveAs(pWinBmp AS PTR, pszFName AS PSZ) AS VOID
PASCAL:FabPaint.FabDIBSaveAs
//p Save a DIB Object to a DIB file
//a <pWinBMp> Pointer to the DIB Object to save
//a <pszFName> Name of the File to create
//d This function will save the desired DIB Object as a DIB file.

FabPaint is free for use and you should be able to get if from Fabrice
Forray's website.

John



Mike schreef:
> Hi
>
> I tried this sample (no FabPaint exemple):
>
>>>> METHOD WindowToPicture(uFileName, nLeft, nTop, nWidth, nHeight )

>
> but i missed the function WriteDIB( cFileName, hDIB ), has anybody
> the source ?
>
> the first sample
>>> It is based on FabPaint and so you need to have that DLL

>
> is this library free?
>
> Mike
>

Reply

Thread Tools



All times are GMT -5. The time now is 12:51 AM.

Managed by Infnx Pvt Ltd.