![]() Iole_nnectToNewobject( "word. The f_inserttextatbookmark is as follows: public function integer f_inserttextatbookmark (string as_bookmark, string as_text, string as_fontname, integer ai_fontsize) If lnv_word.f_inserttextatbookmark( 'shipper', ls_value ) = -1 then return -1 Ls_value += char(10) + char(13) + ids_form_country Ls_value += char(10) + char(13) + ids_form_address4 Ls_value += char(10) + char(13) + ids_form_address2 ![]() Is there anything else I can try? Or does anybody know of a different way to fill in word forms using Powerbuilder? //1 Shipper When I fill in the form manually I can insert newlines as much as I want. I've also tried using "~r~n", this also just prints 2 squares. In the code below you can see I use char(10) + char(13) to insert a newline, however in the saved document all I see is 2 little squares where the characters should be. The Word document is protected so only the form fields can be altered. The section we are most interested in is Controls. Click OK and click on the tab in the ribbon. On the left-hand side, click on Customize Ribbon and then check the Developer box in the right-hand list box. To enable the tab, click on File and then Options. I have an application written in Powerbuilder 11.5 that automatically fills in form fields of a Word document (MS Word 2003). Since it’s not used by a lot of people, Microsoft disabled it by default.
0 Comments
Leave a Reply. |