Karen,
 
This the approach I use to print a portion of the screen but you can easily 
capture the entire screen, This is the meat of the code I use:
 
-- Using the latest R:Base Screen Capture
-- Create unique Employee Utilization variable with User ID as part of the name 
so it is unique for each user and delete the file to make sure a fresh one is 
generated
 
SET ERROR MESSAGE 2077 OFF
SET VAR vCommand =('DELETE' & .vuser_id + 'EU.JPG')
&vCommand
SET ERROR MESSAGE 2077 ON
SET VAR vImageEU = (.vuser_id + 'EU.JPG')
 
-- Capture a portion of the screen
PROPERTY RBASE_FORM 'CAPTURE_FROM_WINDOW|365,228,915,625' &vImageEU
-- The code in the next line works capturing the entire screen
-- PROPERTY RBASE_FORM CAPTURE_FROM_WINDOW &vImageEU
)
PRINT emp_prod_daily OPTION SCREEN|Window_State MAXIMIZED
…
 
In my case, I capture a portion of the screen displayed in  a Web Browser 
inside the form and then print the image using a report where the variable is 
displayed as a variable image that you can scale as needed; in your case, you 
might need/want to set the report as landscape to better fit the screen.
 
Javier,
 
Javier Valencia, PE
O: 913-829-0888
C: 913-915-3137
 
From: 'Karen Tellef' via RBASE-L [mailto:[email protected]] 
Sent: Saturday, April 20, 2019 10:22 AM
To: [email protected]
Subject: Re: [RBASE-L] - Rbase_form Print options?
 
Doug:  when I was looking through my notes originally, I found this example:
     
PROPERTY RBASE_FORM 'CAPTURE_FROM_SCREEN|23, 24, 934, 800' 
'c:\Screen_AreaCapture.bmp'
 
 
I was thinking that perhaps I could capture the form size, save to a jpg, 
create an "empty" report template that would print the jpg image.  I haven't 
tried it yet, but I will (and report the results to the list) if the easy 
print-screen cannot work
 
Karen
 
 
 
-----Original Message-----
From: Doug Hamilton <[email protected]>
To: rbase-l <[email protected]>
Sent: Sat, Apr 20, 2019 9:11 am
Subject: Re: [RBASE-L] - Rbase_form Print options?
Karen - would the CAPTURE and PASTE properties work?  
You might have to create an image control for pasting and send it to the printer

PROPERTY RBASE_FORM CAPTURE_FROM_WINDOW 'CLIPBOARD'
PROPERTY <Component ID> PASTEFROMCLIPBOARD 'TRUE'

PROPERTY RBASE_FORM CAPTURE_FROM_WINDOW 'CLIPBOARD'
Captures an image of the current window and places the content in the 
clipboard. The entire window, or a specified area can be captured.
Examples:
  -- to capture full form to a BMP file
  PROPERTY RBASE_FORM CAPTURE_FROM_WINDOW CLIPBOARD
  -- to capture part of the form to a JPG file
  PROPERTY RBASE_FORM 'CAPTURE_FROM_WINDOW|12,12,134,300' CLIPBOARD

PROPERTY <Component ID> PASTEFROMCLIPBOARD 'TRUE'
Pastes data from clipboard to the focused field. This parameter is supported 
for DB/Var Edit/Memo/Image controls.
PROPERTY ComponentID PasteFromClipboard TRUE
You can also paste data to the focused field using:
PROPERTY RBASE_FORM PasteFromClipboard TRUE

I haven't tried any of this, just found the properties that might steer you in 
a direction.
Doug
On 4/20/2019 8:51 AM, Buddy Walker wrote:
Karen 
  If the form is that large couldn’t you creat a report that looks like the 
form. Just save changes before printing. 
Sent from my iPhone

On Apr 20, 2019, at 9:15 AM, 'Karen Tellef' via RBASE-L 
<[email protected]> wrote:
I want to put a "print this form" button on a very large form to send a 
print-screen to my printer.  These are the only options I know that I can use, 
but only a portion of the form will print.  Any other options I don't know 
about to shrink the picture onto one printer page, or another way to do it?
 
 
PRNSETUP LANDSCAPE
PROPERTY RBASE_FORM PRINT 'FITTOPAGE'
PROPERTY RBASE_FORM PRINT 'PRINTER'
PRNSETUP PORTRAIT
 
Karen
 
 
-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
 

 
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon>
 
Virus-free.  
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
 www.avast.com 
-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to