Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  MS-Word automation with C#
Previous Previous
 
Next Next
New Post 7/18/2008 11:34 PM
Unresolved
User is offline pbrathod
1 posts
10th Ranked


MS-Word automation with C# 

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 10:03 AM
User is offline cathal connolly
2756 posts
www.cathal.co.uk
5th Ranked










Re: MS-Word automation with C# 

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

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  MS-Word automation with C#
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP