> On Dec 28, 2017, at 1:16 PM, Guy Algot via 4D_Tech <[email protected]>
> wrote:
>
> I use an offscreen area. For example ;
Thanks Guy! I tried to use on offscreen area, but until I saw your example
could not get it to do what I wanted. Using your example with a couple of
modifications I got it working almost perfectly now, working code below.
The only issue I have now, which is not a big deal, is with the function
"Select document" which allows me to suggest a file name in the dialogue. I
wish that the command isolated the file name in another parameter so that I
could use a memorized access path number in the directory parameter. Guess I
can’t have it all.
In any event, Thanks again Guy.
John
————————
C_BLOB($doc)
C_TEXT($path; $reportPath)
C_LONGINT($myQR)
$path:=“MySuggestedFileName"
$path:=Select document(System folder(Documents folder)+$path;"";"Report
name:";File name entry;$aSelectedPath)
If (ok=1)
$path:=$aSelectedPath{1}+".txt"
$reportPath:=Get 4D folder(Database folder)+"Resources"+Folder
separator+"TimeSheetEmployeeExport.4qr"
$myQR:=QR New offscreen area
DOCUMENT TO BLOB($reportPath;$doc)
QR BLOB TO REPORT($myQR;$doc)
QR SET DESTINATION($myQR;qr text file;$path)
QR RUN($myQR)
QR DELETE OFFSCREEN AREA($myQR)
End if
————————
John Baughman
Kailua, Hawaii
(808) 262-0328
[email protected]
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************