473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C#, Word Documents, and deleting whitespace

Hi, I'm creating a program to do some mail merging, and I need to delete some white space that is before the text of the second page on my mail merging letter.
Does anyone know a good way of ensuring the input cursor is placed on the first line of the second page of a read-in document?

I've got a small version of what I need working as a stand alone application, using the Word Document browser commands. In the full mail merging program I'm writing however, the same code which works fine on its own doesn't work in the project.
I'm importing the exact same COM references and copied and pasted the code with little alteration... the solution compiles but the browser commands do nothing.
It's most puzzling...

I can't alter the input Word Document file to have any extra characters, so I could do with any suggestions on better use of the moveUp/Down commands maybe?

Any advise you lot could offer would be brilliant. I'm new to C#... I'm more a Java/Web/PHP guy.
Nov 16 '06 #1
1 1487
Nevermind, solved my own problem...!
Possibly due to the way I'd structured the bigger program, I had to specify the Browser.Target attribute in the bigger program to get the Browser functionality working for the Word Document.

It wasn't needed to be specified in the smaller program.
Nov 16 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: sudha | last post by:
Hi I need to write a c# program which has to merge selected word documents into one word document. Kindly advise the efficient way to achieve this. Thanks in advance sudha
8
by: Jason Steeves | last post by:
Can someone please point me in the right direction for displaying word documents onto a webpage? The word documents will contain text/tables/pictures. I am new to this and can't quite find what I...
5
by: vinod | last post by:
Hi, I intend to send word documents thru mail to my clients. I don't want my clients to save the word document to there system and i don't want them to print the word documents. How can i...
1
by: dixie | last post by:
I am trying to send information to 2 different MS Word 2000 documents from automation code in Access 2000. I have simply added an extra transfer text command and an extra line to open the document...
0
by: Maheshwari | last post by:
Hi Can you please help with some info on how to open existing word documents / merge two word documents from a C# program ? My user will select 2 or many word docs and i have to create a c# exe...
0
by: mharris | last post by:
I need help with merging two Word documents into one through C# code. The problem isn't so much getting the documents put into one as it is maintaining the appropriate formatting, or rather...
2
by: David | last post by:
Using the article from this link, http://www.codeproject.com/aspnet/wordapplication.asp, I have been playing with generating Word documents using an ASP.NET application. The only short coming...
7
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
0
by: Eagle | last post by:
I am trying to change the linewidth of a page border, and keeping getting an error at the "wdLineWith075pt" For some reason, it only accepts the value of 24 like the left border. Yet when I print...
20
MMcCarthy
by: MMcCarthy | last post by:
This problem was proposed to me but not really my area of expertise so I thought I would open it up to the forum to see if anyone had any bright ideas. The problem is generating Microsoft Word...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.