hi,
just a Question : is there a RTFToHTM() Function in Harbour
is there a RTFToHTML() Function in Harbour ?
is there a RTFToHTML() Function in Harbour ?
greeting,
Jimmy
Jimmy
Re: is there a RTFToHTML() Function in Harbour ?
By Rochinha.Jimmy wrote:hi,
just a Question : is there a RTFToHTM() Function in Harbour
http://www.pctoledo.com.br/forum/viewto ... 39&t=15459
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: is there a RTFToHTML() Function in Harbour ?
Dear Jimmy,
Do you have Word installed?
Then you can open many formats with the Word object and save them in others.
Best regards,
Otto
In the Word object, there are several constants for different file formats when using the SaveAs method. The specific constant you need depends on the version of Word. Here are some commonly used constants for the SaveAs method:
These constants are typically defined in the Word namespace. You can use them to specify the corresponding formats in your SaveAs method.
Do you have Word installed?
Then you can open many formats with the Word object and save them in others.
Best regards,
Otto
Code: Select all | Expand
oMail := oOutlook:CreateItemFromTemplate( Alltrim( cFile ) )
//olHTML 5 HTML format (.html) oMail:SaveAs ( cZielVerzeichnis + "\" + cFileNoExt(cVData) + "_fromEmail.html", 5 )
oMail:SaveAs ( cSaveAsRTFFile, 1 )
oWord := CreateObject( "Word.Application" )
oDoc := oWord:Documents:Open( cSaveAsRTFFile )
oDoc:SaveAs( cSaveAsHTMLFile, 10 )
oWord:Visible := .t.
oWord:PrintOut()
oDoc:Close()
oWord:Quit()
Code: Select all | Expand
wdFormatDocument: 0 - Saves as a Word document (.docx)
wdFormatRTF: 1 - Saves as an RTF file
wdFormatText: 2 - Saves as a text file (.txt)
wdFormatHTML: 10 - Saves as an HTML file (.html)
wdFormatXMLDocument: 12 - Saves as an XML document (.docx)
wdFormatPDF: 17 - Saves as a PDF file (.pdf)
wdFormatXPS: 18 - Saves as an XPS file (.xps)
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
Re: is there a RTFToHTML() Function in Harbour ?
hi Otto
i got a Link from karinha and it seems what i´m searching
i do not want to convert a RTF.Otto wrote: Do you have Word installed?
Then you can open many formats with the Word object and save them in others.
i got a Link from karinha and it seems what i´m searching
greeting,
Jimmy
Jimmy
Re: is there a RTFToHTML() Function in Harbour ?
RTFToHTM() open the RTF ans saveas HTML
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************