Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3576

Re: what I have done wrong?I try to export the RTE to a MS-WORD file,but nothing in it.

$
0
0

Hi Chris

     I still have issue,although I'm very familar with Grid & free style Datawindow and I have used PB for 5 years,however, I'm not familar with rich text datawindow and rich text edit control at all.I have trouble that I have copy the document form rich text datawindow,but the data which produce by columns didn't on the RTE control,there is no data except the documnet content on the ms-word file.and I have googled this and watch the help file for almost a day,I didn't found the answer,I can't figure out what I have done wrong.please help

my code is following ,thanks!

 

     dw_exp.reset()

         dw_exp.retrieve(ld_caseid)

         rte_exp.Clear()

         string ls_prodadd

          datetime ld_begtime,ld_endtime

          string ls_taken,ls_yyyy

   

         ls_richtext=dw_exp.CopyRTF(false)

           ll_thecount=rte_exp.PasteRTF( ls_richtext,Detail!)

          if  ll_thecount<0 then

            messagebox("warnning","application terminated,because there are exception on pasting")

            return

        end if

 

rte_exp.SetRedraw(TRUE)
rte_exp.SaveDocument(path,FileTypeDoc! )

     messagebox("hello","export finish!")

 

Regards

Ken


Viewing all articles
Browse latest Browse all 3576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>