i printed the content of a card into pdf-file in specialfolderpath("documents"), no problems.
Code: Select all
global dbid, sql, tergebnis, tdatei
on mouseUp pMouseButton
local tAttachment
open stack "printpdf" of stack "Logbuch"
put specialFolderPath....
open printing to pdf tPDFPath
set printpaperorientation to "landscape"
if the result is "Cancel" then
## The user has cancelled printing
exit mouseUp
else
## Print the card into the printable area
print card "cardprintpdf" of stack "printpdf" of stack "Logbuch" into 10,50,812,547
end if
go to card "cardprintpdf" of stack "printpdf" of stack "Logbuch"
close printing
close stack "printpdf" of stack "Logbuch"
end mouseUp
Code: Select all
if the environment is "mobile" then
put "mypdffile" into tAttachment["name"]
put "xxx" into tsubject
put "mymailaddress" into temail
put "yyy" into tbody
put specialFolderPath("documents") & "/" & mypdffile into tAttachment["file"]
put "application/pdf" into tAttachment["type"]--
mobileComposeMail tsubject, temail, , , tBody, tAttachment
end if
Has anyone got an idea how to manage this? I already tried snapshot but got also only the visible part in the png-file.
Grets Andreas