Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Is there any way I can print out the form as it looks on the screen?
Is there any way I can print out the form as it looks on the screen?  VFP9



Thanks,

Thorkell



Report this thread to moderator Post Follow-up to this message
Old Post
Thorkell
05-29-05 01:58 AM


Re: Is there any way I can print out the form as it looks on the screen?
"Thorkell" <thorkell@simnet.is> schrieb im Newsbeitrag
news:e00XHU9YFHA.3220@TK2MSFTNGP14.phx.gbl...
> Is there any way I can print out the form as it looks on the screen?  VFP9

There is nothing built in, but several tools available. Try a
Google groups search, e.g. subject "print screen", groups *fox*
http://groups-beta.google.com/group...=S
earch
You can create your own function using the CreateCompatibleBitmap API
too, or have a look at GDI+ (www.universalthread.com, Downloads search
for "GDI")


hth
-Stefan


--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- /  See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------




Report this thread to moderator Post Follow-up to this message
Old Post
Stefan Wuebbe
05-29-05 02:00 PM


Re: Is there any way I can print out the form as it looks on the screen?
LOL!

"Paul Pedersen" <no-reply@swen.com> schrieb im Newsbeitrag
news:eRTDyFHZFHA.2288@TK2MSFTNGP14.phx.gbl...
> See attached.
>
> "Thorkell" <thorkell@simnet.is> wrote in message
> news:e00XHU9YFHA.3220@TK2MSFTNGP14.phx.gbl... 
VFP9 
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Christian Ehlscheid
05-30-05 01:58 AM


Re: Is there any way I can print out the form as it looks on the screen?
"Paul Pedersen" <no-reply@swen.com> schrieb im Newsbeitrag
news:eRTDyFHZFHA.2288@TK2MSFTNGP14.phx.gbl...
> See attached.

Thanks Paul. Just tried and had some great results using your technique.
Any hints how to create PDF files that way?


TIA
-Stefan


Report this thread to moderator Post Follow-up to this message
Old Post
Stefan Wuebbe
05-30-05 09:00 AM


Re: Is there any way I can print out the form as it looks on the screen?
This routine will print the clipboard from Word

ox=CREATEOBJECT("word.application")
ox.Visible = .t.
odoc=ox.Documents.Add()
ox.Selection.Paste
odoc.printout


This function will send the keystrokes to Windows to capture your screenshot
to the clipboard.   There are probably other methods.


* Declare the Function
DECLARE INTEGER keybd_event IN Win32API ;
INTEGER, INTEGER, INTEGER, INTEGER
VK_SNAPSHOT = 44    && from the winuser.h
VK_LMENU = 164
KEYEVENTF_KEYUP = 2
KEYEVENTF_EXTENDEDKEY = 1


* To get just the Active window
DOEVENTS
keybd_event(VK_SNAPSHOT, 1, 0, 0 )
keybd_event(VK_SNAPSHOT, 1, KEYEVENTF_KEYUP, 0 )
DOEVENTS


* To get the Full windows desktop
DOEVENTS
keybd_event( VK_LMENU,    0, KEYEVENTF_EXTENDEDKEY, 0 )  && key down
keybd_event( VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY, 0 )
keybd_event( VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY + KEYEVENTF_KEYUP, 0 )
keybd_event( VK_LMENU,    0, KEYEVENTF_EXTENDEDKEY + KEYEVENTF_KEYUP, 0 )
DOEVENTS


I hope this helps,

Dan






"Thorkell" <thorkell@simnet.is> wrote in message
news:e00XHU9YFHA.3220@TK2MSFTNGP14.phx.gbl...
> Is there any way I can print out the form as it looks on the screen?  VFP9
>
>
>
> Thanks,
>
> Thorkell
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Dan Tallent
06-02-05 02:01 AM


Re: Is there any way I can print out the form as it looks on the screen?
Thank you guys for the info and a good laugh. The code from Dan Tallent
works fine.



Thorkell



Report this thread to moderator Post Follow-up to this message
Old Post
Thorkell
06-03-05 09:03 PM


Re: Is there any way I can print out the form as it looks on the screen?
I'm glad I could help,

Someone else might have a better (faster) method to printout the contents of
the clipboard.

Dan Tallent


"Thorkell" <thorkell@simnet.is> wrote in message
news:eD1R1eGaFHA.900@tk2msftngp13.phx.gbl...
> Thank you guys for the info and a good laugh. The code from Dan Tallent
> works fine.
>
>
>
> Thorkell
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Dan Tallent
06-04-05 02:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual FoxPro Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:32 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.