Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / August 2004



Tip: Looking for answers? Try searching our database.

Creating multiple tables in Word using VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BrianH - 26 Aug 2004 18:07 GMT
I've written a VB app that creates a Word report.  The basic format of the
report is
<Page header>

<table header>
<table data>

<next table header>
<next table data>
etc.

Everything works fine until I try to create the second table.  The insertion
point is still in the first cell of the first table, and I get a run-time
error 5962 "there is already a table at this position."  I think the problem
is with the value in the Range object, but I can't seem to change it. Any
suggestions?

Thanks
Brian
Signature

Brian Hammond

Gilles Costa - 27 Aug 2004 08:12 GMT
> I've written a VB app that creates a Word report.  The basic format of the
> report is
[quoted text clipped - 12 lines]
> is with the value in the Range object, but I can't seem to change it. Any
> suggestions?

Before creating the second table you should try to send a « nextcell »
or « linedown » command to word to go out of the first table.

Signature

Gilles COSTA, Géomètre-expert
Selarl Gross-Allain
17, grande rue, BP 23 91311 Montlhéry cedex
T : 01.64.49.00.52  -  F : 01.64.49.06.64
http://perso.wanadoo.fr/gross.allain

BrianH - 27 Aug 2004 13:47 GMT
OK, I'll give that a try.

Thanks,

> > I've written a VB app that creates a Word report.  The basic format of the
> > report is
[quoted text clipped - 15 lines]
> Before creating the second table you should try to send a « nextcell »
> or « linedown » command to word to go out of the first table.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.