Creating an RTF file with converter

These different converters modules enables you to convert your existin documents to the above formats. These are all parts of our Document Converter produt.
Here you can post all the installation and usage issues related to the document converters including our latest DOCX Converter
Post Reply
DanielBordeleau
Posts: 21
Joined: Tue Apr 29 2003
Location: Montreal, Quebec

Creating an RTF file with converter

Post by DanielBordeleau »

Hi,
I'm trying to create a RTF file with the RTF converter but it always creates a pdf instead. It seems like the FileNameOptionsEx property doesn't work... here's my code.

thanks

Daniel

-------------------------------------------------------------------------------
Const gcCDIntfEx_CompanyName = "MY COMPANY NAME"
Const gcCDIntfEx_ActivationKey = "MY ACTIVATION KEY"

Private Sub Command1_Click()
Dim cdRTF As New CDIntfEx.CDIntfEx

' Initialize the printer
cdRTF.DriverInit "Amyuni RTF Converter"

cdRTF.EnablePrinter gcCDIntfEx_CompanyName, gcCDIntfEx_ActivationKey

cdRTF.Orientation = 1
cdRTF.PaperSize = 1
cdRTF.SetDefaultConfigEx

' Set the RTF Converter as the default printer
cdRTF.SetDefaultPrinter

' Set the default directory and filename
cdRTF.DefaultDirectory = "c:\Temp"
cdRTF.DefaultFileName = "c:\Temp\AnalysisRpt.RTF"

' Set print options
cdRTF.FileNameOptionsEx = 1 + 2 + &H8000000

' Print the report into the RTF file
Me.PrintForm

' Reset the printer
cdRTF.FileNameOptionsEx = 0
cdRTF.RestoreDefaultPrinter

End Sub

-------------------------------------------------------------------------------
DanielBordeleau
Posts: 21
Joined: Tue Apr 29 2003
Location: Montreal, Quebec

Post by DanielBordeleau »

And by the way, I'm using the CDIntf210.dll version 2.10c with VB6 on Windows XP

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello Daniel,

Please try to use 134217728 (Decimal Value) or &H8000000H instead of &H8000000

Have a nice day.
DanielBordeleau
Posts: 21
Joined: Tue Apr 29 2003
Location: Montreal, Quebec

Post by DanielBordeleau »

Nope... still doesn't work. :cry:
JonW
Posts: 1
Joined: Sun Oct 19 2003

pdf to rtf?

Post by JonW »

Doing a pdf to rtf conversion, instead of creating an rtf text file it appears to create a frame for every line, configured for text embedding not wrapping; and attempting any manipulation such as inserting a paragraph ahead of the document results in unpredictable outcomes. Word 2000, WinXP.

Am I wrong? :?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello JonW,

The rtf output depends on what is the option you are using when generating the file. If you are using 'Advanced RTF' than the text will be in frames. If you choose other options like Full RTF, Formated text or Plain text the output will be as text but pictures may not be converted properly.

Depending on your document you need to choose the more convenient option of the RTF Converter.

For more details please check our product manuals ("Amyuni PDF Converter.pdf" for End Users and "Common Driver Interface 210.pdf" for Developers).

Hope this helps 8)
Post Reply