I am trying to create an e-mail with the RICH Text content
of a datawindow in the body of the e-mail
Attachments are not allowed , save as PDF not allowed.
Is there a way to send the contents of the datawindow as a
rich text interface via the body of the e-mails without
attachments ?
Thanks,
Jas
The built-in MAPI email functionality does not support HTML email.
I have a SMTP email object you can use that supports HTML email.
http://www.topwizprogramming.com/freecode_emailsmtp.html
I have used this code to generate HTML from a datawindow.
// set html properties
dw_viewer.Modify("datawindow.HTMLTable.GenerateCSS='yes'")
dw_viewer.Modify("datawindow.HTMLTable.NoWrap='yes'")
dw_viewer.Modify("datawindow.HTMLTable.border=0")
// format the html
ls_html = "<HTML>~r~n<HEAD>~r~n"
ls_stylesheet = dw_viewer.object.datawindow.HTMLTable.StyleSheet
ls_html += ls_stylesheet + "~r~n</HEAD>~r~n<BODY>"
ls_html += dw_viewer.object.DataWindow.data.HTMLTable
ls_html += "~r~n</BODY>~r~n</HTML>"
Can you send it as a PDF instead as that format handles nested DWO's?
--
Regards ... Chris
ISUG - NA RUG Director
Blog: http://chrispollach.pbdjmagazine.com
SourceForge: http://sourceforge.net/projects/stdfndclass
"Alastair Walker" <spi...@mweb.co.za> wrote in message
news:sm9tg5l44236h72tg...@4ax.com...
> Hi - Roland - thanks for the guidance below.
>
> But I have a question.
>
> The user manual indicates that nested reports are ignored.
>
> I have a datawindow that I need to generate html from, but it has
> nested reports.
>
> Is there any recommended work-around in this situation?
>
> Many thanks,
>
> Alastair Walker
>
> On 20 Nov 2009 12:46:16 -0800, "Roland Smith [TeamSybase]"
My real problem is the following:
I want to format a report that I can include as an object into a Word
file.
The importred report must be in a format that can be recognised by
Word, and with attributes that can be acted upon.
So image formats, and pdf are not going to work for me.
I have considered trying to use RTF as a format, but the rtf
facilities in a dw are very limited from a formatting perspective.
The next best option seems to be html - which I can import into Word.
The problem I have run up against is that the dw html conversion
facilities seems to ignore embedded reports - which I do make use of.
I guess my best approach will be to try and generate the report
without using the embedded reports feature.
Best regards,
Alastair
On 26 Nov 2009 11:04:47 -0800, "Chris Pollach"
HTH
"Alastair Walker" <spi...@mweb.co.za> wrote in message
news:26sug5htbuk6aplvf...@4ax.com...
--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
"Chris Pollach" <cpol...@travel-net.com> wrote in message
news:4b0fceff@forums-1-dub...
Regards,
Alastair
On 27 Nov 2009 07:47:50 -0800, "Terry Dykstra [TeamSybase]"