Hi all,
Recently I got one requirement, to prepare word & excel file through automated batch process. I am new to working with word using C#
Here is my steps & problem... Please guide me.
1) I have word template file (.dot) file2) I have couple of predefine bookmarks in this template (.dot) file3) From c# I am opening this template and replacing bookmarks value with actual value
For example following are my bookmark in (.dot) file (template file)A_B_C_D P_Q_RC_Y_T_Z R_V_NR_M_W_Q J_E_K
now based on condition i am putting different value for thesebookmark. Also I am checking if theactual value for "P_Q_R" bookmark is null I am checking actual value for "R_V_N" bookmarkand replacing actual value of "A_B_C_D" with "C_Y_T_Z" & "P_Q_R" with "R_V_N" respectively
Now based on my left side bookmark actual text length the right side alignment not coming properly.
for example
Hello h r u 100.55fine 54.12C# programming 102.85something here if too long 211.53
I dont want to use table
Highly appreciate your help & any suggestion; I am really stuck withthis problem,
thanks a lotpbr