save RTF in file
Posted: Thu Oct 29, 2015 12:32 am
Good day all,
I trying to save RTF in pc file but I cn save my RTF header name but all the time when I open it it empty inside
code
global gEditorField
on preopencard
put "status" into field "statusField"
end preOpenCard
on openCard
put the RTFText of field "editorField" into gEditorField
end openCard
on buttonPushedBack
uploadEditField
end buttonPushedBack
on uploadEditField
if the rtftext of field "editorfield" is gEditorField then
go to card "report"
exit uploadEditField
end if
put field "namefield" into tname
if tname is not in field "listfield" of card"report" then
put "üploading" into field "statusfield"of card "edit report"
put the rtftext of field "editorField"into URL ("file:C:\Users\Live code\Desktop\BPV\report\"& tname & ".rtf")
put cr & tname after field "listfield" of card "report"
put field "listfield" of card "report" into URL ("file:C:\Users\Live code\Desktop\BPV\report\list.txt")
else
put "uploading" into field "statusfield" of card "edit report"
put the rtftext of field "editorField" into url ("file:C:\Users\Live code\Desktop\BPV\report\" & tname & ".rtf")
answer "upload complate"
end if
go to card "report"
end uploadEditField
why it don't save what I write inside the field
thanx
I trying to save RTF in pc file but I cn save my RTF header name but all the time when I open it it empty inside
code
global gEditorField
on preopencard
put "status" into field "statusField"
end preOpenCard
on openCard
put the RTFText of field "editorField" into gEditorField
end openCard
on buttonPushedBack
uploadEditField
end buttonPushedBack
on uploadEditField
if the rtftext of field "editorfield" is gEditorField then
go to card "report"
exit uploadEditField
end if
put field "namefield" into tname
if tname is not in field "listfield" of card"report" then
put "üploading" into field "statusfield"of card "edit report"
put the rtftext of field "editorField"into URL ("file:C:\Users\Live code\Desktop\BPV\report\"& tname & ".rtf")
put cr & tname after field "listfield" of card "report"
put field "listfield" of card "report" into URL ("file:C:\Users\Live code\Desktop\BPV\report\list.txt")
else
put "uploading" into field "statusfield" of card "edit report"
put the rtftext of field "editorField" into url ("file:C:\Users\Live code\Desktop\BPV\report\" & tname & ".rtf")
answer "upload complate"
end if
go to card "report"
end uploadEditField
why it don't save what I write inside the field
thanx