Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0MS-Word automation with C#MS-Word automation with C#
Previous
 
Next
New Post
7/19/2008 1:34 AM
 

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) file
2) I have couple of predefine bookmarks in this template (.dot) file
3) 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_R
C_Y_T_Z                                     R_V_N
R_M_W_Q                                  J_E_K


now based on condition i am putting different value for these
bookmark. Also I am checking if the
actual value for "P_Q_R" bookmark is null I am checking actual value for "R_V_N" bookmark
and 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.55
fine                              54.12
C# programming                       102.85
something here if too long                         211.53

I dont want to use table


Highly appreciate your help & any suggestion; I am really stuck with
this problem,

 

thanks a lot
pbrathod

 
New Post
7/19/2008 12:03 PM
 

This is a dotnetnuke forum, you've a better chance of getting an answer on the c# forums @ forums.msdn.microsoft.com


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0MS-Word automation with C#MS-Word automation with C#


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out