Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InsertDocument!

Status
Not open for further replies.

mmicheo

Programmer
Apr 5, 2006
4
US
Our application create letters to send to customers. We create the letters using 3 components, the letter head or logo which is save in our server, the letter body which is a rtf file save in our servers and the footer or tag line of the page which is txt file save as well in our servers. Well in PB 6.5 I did not have any problems using this script when inserting the tag line:

//Help: Place the tag line in the footer
rte_letter_text.SelectText(li_line, 255, 0, 0, Footer!)
//Help: Insert RTF logo file into RTF control,
li_rc = rte_letter_text.InsertDocument( is_tagline, FALSE, FileTypeText!)
When we migrate to PB 10.2.1, the value of li_rc is -1. I noticed that if I change the FALSE for a TRUE it does work but it will replace all the text that is on the letter.

Help please!!!!

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top