PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → ::: Printing the Contents of a Window
::: Printing the Contents of a Window
Iniciado por Kevin Willis, fev., 18 2004 1:58 AM - 3 respostas
Publicado em fevereiro, 18 2004 - 1:58 AM
Being able to programitically print the contents
of a window would be very usefull.
Similar in behavior to the OS's Print Screen function.


http://www.westcoastsoftwaresolutions.com
Publicado em fevereiro, 18 2004 - 3:03 AM
Hi Kevin
All things are possible with WinDev
Have a look at Clipboard()
Keep well
Peter Purton

Being able to programitically print the contents
of a window would be very usefull.
Similar in behavior to the OS's Print Screen function.
Publicado em fevereiro, 18 2004 - 4:37 AM
Check THE GUIDE for PRINT > wizard:Window Hard Copy
It will generate the proc for you.

PROCEDURE ScreenCapture(sImageName,sBMPName="HardCopy.BMP",bView=True)
// Initialize the destination control size with the size of the zone to copy
{sImageName}..Width=WinOutWidth() ; {sImageName}..Height=WinOutHeight()
dCopyBlt(copyScreen,sImageName,copySrcCopy,WinOutXPos(),WinOutYPos(),WinOutHeight(),WinOutWidth())
// Backup in BMP format
dSaveImageBMP(sImageName,sBMPName)
dEndDrawing(sImageName) // Free the memory
IF bView THEN ShellExecute(sBMPName) ELSE Info("Window image saved as" +sBMPName)
Publicado em fevereiro, 18 2004 - 12:46 PM
Look in the help at: Printing, Image of a Window.
The command WindowBitmap wil print the window but I don't know if it print the data.
Regards Frans.
Being able to programitically print the contents
of a window would be very usefull.
Similar in behavior to the OS's Print Screen function.