Hello,
I'm trying to import a RTF-document that is generated with MS-Word.
But last-error always gives me error 1004, but in the help of Virtual Print Engine, there's no explanation about that code, so I don't know what I'm doing wrong.
This is vpe 7.20 pro-edition.
The code is in Progress OpenEdge, but maybe someone can help me out with this:
USING IDEALSoftware.VpeProfessional.*.
DEFINE VARIABLE chCtrlFrame AS CLASS VpeControl NO-UNDO.
chCtrlFrame = NEW VpeControl().
chctrlframe:OpenDoc().
chctrlframe:unittransformation = 1000 NO-ERROR.
chctrlframe:PageFormat = PageFormat:A4.
Chctrlframe:setoutrect(250, 250, Chctrlframe:pagewidth - 250, Chctrlframe:pageheight - 250).
Chctrlframe:setdefoutrect(250, 250, Chctrlframe:pagewidth - 250, Chctrlframe:pageheight - 250).
MESSAGE chctrlframe:LastError
VIEW-AS ALERT-BOX INFORMATION BUTTONS OK.
chctrlframe:WriteRTFFile(250, 250, chctrlframe:pagewidth - 250, chctrlframe:nfree, "C:\disctemp\TESTRTF.rtf").
MESSAGE chctrlframe:LastError
VIEW-AS ALERT-BOX INFORMATION BUTTONS OK.
chCtrlFrame:Preview().
DELETE OBJECT chctrlframe NO-ERROR.