473,657 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To programmaticall y add, modify, or read a table cell in a Word document:

syedshaffee
91 New Member
hi people,
i have uploaded a file that has table in word

This Doc is generated through my user interface in access

I want to merge the cell after, completion of the generation process

Is their any way to do so in access please help
Attached Files
File Type: doc To programmatically add.doc (34.0 KB, 404 views)
Sep 11 '12 #1
3 4362
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
Why dont you show us your code currently used to create the table? That might make it easier to reply in sense.
Sep 11 '12 #2
Rabbit
12,516 Recognized Expert Moderator MVP
This selects and merges cells on a table.
Expand|Select|Wrap|Line Numbers
  1. WordApp.Selection.SetRange _
  2.    WordApp.ActiveDocument.Tables(1).Cell(1, 1).Range.Start, _
  3.    WordApp.ActiveDocument.Tables(1).Cell(1, 2).Range.End
  4. WordApp.Selection.Cells.Merge
Sep 11 '12 #3
syedshaffee
91 New Member
Thanks rabbit i see if this works
Sep 13 '12 #4

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

Similar topics

6
4990
by: Anon | last post by:
I have a table with a cell. The cell's ID is created using a unique name that is held in m_UniqueCellName and the cell is created like so... document.write( "<TD ID="' + m_UniqueCellName + '"></TD>" ); How can I programmatically modify the contents of the cell whose name is held within m_UniqueCellName? The variable will get passed around to other functions, but try as I might,
4
5904
by: josepe | last post by:
Hello, I want to do a Ms Word document in a ASP page. I can do it, With the code lines: ///// Response.ContentType = "application/msword" Response.AddHeader "content-disposition", "inline; filename=OrderFax.doc" //// With these lines all document content show like a Word document.
4
12370
by: Tom Dauria | last post by:
What I am trying to do is write a resume into a word document from information in an Access database. I have been using bookmarks and inserting table results into the document and so far it's working but I have run into a problem. The final section of the resume deals with Experience which is subgrouped by Market Segments and then experience. What I want it to look like is
8
2808
by: Tim Murphy | last post by:
How do you read/write a Word document embedded in an OLE Object field in an Access table with VB.NET? I have an Access application where users are creating and editing Word documents that are embedded in the database. I need to write a VB.NET application to routinely read the contents of these Word documents. I've written code that uses automation to open a Word document saved on disk and read the contents of the document but I don't...
0
1829
by: Anton | last post by:
Hi All, Is it possible to read through a word document, find a number of strings (using wildcards) and prompt the user to enter values for them. I have a document management database that builds word documents based on a template and then searches and replaces values saved in a table. This works fine. However, I would like to then search through the document after this procedure and see if there are any variables that have not been...
0
8657
southoz
by: southoz | last post by:
Good ay all , I'm fairly new to access(a little over 5 weeks now). Since I'v started I have picked up a lot of useful information from forums such as this and in doing so will share that information with others. I have seen many request for information on mail merging an how to send data to word documents this is something I have put together with the answers given by others and I hope this will help a few newbies , I know there are easier ways...
7
2444
by: SteveM | last post by:
I am sure this is an easy question, but being relatively new to ASP.NET programming, I can not quite grasp what I need to accomplish what I need to do. What I have is a word document that is rendered as a page (or actualy a part of a page) that is editiable. To do this I let the user download the document, edit it and then upload it back to the site. Then at Page_Open, I convert the .doc file to an html and render it back to the page......
3
3074
by: Gops | last post by:
programmatically I've to create word document which contains the paragraph in the right side and in left side is line number. Note:- The line number may be ordered/odd or Even. Any one can help me?
0
787
by: cholletivinod | last post by:
Hi friends , am creating one application in dat i want to replace particular text(<<ABC>>) with a table in word document am using below code but am getting text if i open the word document please help me System.Text.StringBuilder strDocContent = strDocContent.Replace("<<ABC>>", "<table><tr><td>a</td></tr></table>"); System.IO.StreamWriter stmWriter = new System.IO.StreamWriter(ServerPath...
0
5273
by: shivapadma | last post by:
i want to know how multiple tables are added to the MS word document using vb.net i wrote following code to insert one table in MS word document using vb.net 1.opened MS word document 2.inserted one 3x3 table Dim App As New Word.Application() Dim Doc As Word.Document = App.Documents.Add() Dim oTable1 As Word.Table Dim Range As Word.Range
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7316
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.