Click here to Skip to main content
15,889,862 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to raise Performance of COM Server of external API ? Pin
Baltoro16-Jul-09 14:53
Baltoro16-Jul-09 14:53 
GeneralRe: How to raise Performance of COM Server of external API ? Pin
gehbitte16-Jul-09 21:00
gehbitte16-Jul-09 21:00 
GeneralSome Information on COM server and client model Pin
Baltoro18-Jul-09 7:47
Baltoro18-Jul-09 7:47 
GeneralRe: Some Information on COM server and client model Pin
gehbitte18-Jul-09 8:48
gehbitte18-Jul-09 8:48 
GeneralRe: Some Information on COM server and client model Pin
Baltoro18-Jul-09 11:48
Baltoro18-Jul-09 11:48 
GeneralHa Ha (apparently Microsoft had this problem too) Pin
Baltoro18-Jul-09 13:04
Baltoro18-Jul-09 13:04 
GeneralRe: Ha Ha (apparently Microsoft had this problem too) Pin
gehbitte18-Jul-09 22:19
gehbitte18-Jul-09 22:19 
QuestionWriting multiple Tables to Word from VB Pin
spikedturtle11-Jul-09 4:49
spikedturtle11-Jul-09 4:49 
hi all,

How someone can help with this question. I am trying to write a number of tables to Word. I can create the document and application and add a table, my problem arises when I want to seperate them. I believe this is something to do with the "range". The first table is set at range (0, 0), I then try to reset the range, or try to insert some blank lines and reset the range. I have also tried to create a new range for each table but I get the same result everytime which is the new table gets inserted into the first cell.
I have done some serious brain damage reading MS help on ranges and how to reset them and also moving selections up on and down- nothing seem to work. Utimately I have 8 tables and I want one table on 8 seperate pages.
thanks for any help you can give


Imports Microsoft.Office.Interop.Word
Imports System.Runtime.InteropServices
Public junk As New DataTable
Private Sub WriteTables()
Dim oApp As Application
Dim oDoc As Document
'Start a new document in Word
oApp = CType(CreateObject("Word.Application"), Application)
oDoc = oApp.Documents.Add()
' Clear out any existing information.
' oDoc.Range.Delete()
' make the current documents the ActiveDocument
oDoc.Activate()


Dim rng As Range = oDoc.Range(0, 0)
rng.Font.Name = "Verdana"
rng.Font.Size = 16
Dim tlb As Table = oDoc.Tables.Add(Range:=rng, NumRows:= junk.Rows.Count, NumColumns:= junk.Columns.Count)
tlb.Range.Font.Name = "Arial"
tlb.Range.Font.Size = 20

With oApp.Selection
.SetRange(tlb.Range.End + 1, tlb.Range.End + 1)
.Collapse(WdCollapseDirection.wdCollapseEnd)
End With
' Dim i As Integer
' For i = 1 To 5
' oApp.Selection.MoveDown()
' Next


' rng = oApp.Selection.Range
' rng.SetRange(Start:=0, End:=8)
' rng.SetRange(Start:=rng.End + 3, End:=rng.End + 3)
Dim tlb1 As Table = oDoc.Tables.Add(Range:=rng, NumRows:=6, NumColumns:=6)
oApp.Visible = True

End Sub
AnswerRe: Writing multiple Tables to Word from VB Pin
Stuart Dootson11-Jul-09 6:00
professionalStuart Dootson11-Jul-09 6:00 
QuestionProgram crashes while updating .idl file manually Pin
chandrakar ashish10-Jul-09 1:17
chandrakar ashish10-Jul-09 1:17 
AnswerRe: Program crashes while updating .idl file manually Pin
«_Superman_»10-Jul-09 16:09
professional«_Superman_»10-Jul-09 16:09 
AnswerRe: Program crashes while updating .idl file manually Pin
Chiman110-Jul-09 20:29
Chiman110-Jul-09 20:29 
AnswerRe: Program crashes while updating .idl file manually Pin
Stuart Dootson11-Jul-09 2:11
professionalStuart Dootson11-Jul-09 2:11 
QuestionWord Document Mail Merging and then Editing in automated fashion Pin
Sandumone9-Jul-09 10:06
Sandumone9-Jul-09 10:06 
QuestionQuerInterface fails for an Interface of type IUnknown in VB .NET windows service but the same works in VB .NET forms application Pin
VM JOE9-Jul-09 3:51
VM JOE9-Jul-09 3:51 
QuestionAdd extra device property sheet in Windows 7 Devices and Printers Pin
User 60869398-Jul-09 10:15
User 60869398-Jul-09 10:15 
QuestionButton on Toolbar not showing chervon effect Pin
am 20097-Jul-09 0:24
am 20097-Jul-09 0:24 
AnswerRe: Button on Toolbar not showing chervon effect Pin
zm157316-Jul-09 0:07
zm157316-Jul-09 0:07 
QuestionSMPP COM library Pin
harrisyn6-Jul-09 13:27
harrisyn6-Jul-09 13:27 
GeneralRe: SMPP COM library Pin
Md. Marufuzzaman6-Jul-09 21:49
professionalMd. Marufuzzaman6-Jul-09 21:49 
GeneralRe: SMPP COM library Pin
harrisyn7-Jul-09 12:01
harrisyn7-Jul-09 12:01 
GeneralRe: SMPP COM library Pin
Md. Marufuzzaman7-Jul-09 22:41
professionalMd. Marufuzzaman7-Jul-09 22:41 
GeneralRe: SMPP COM library Pin
harrisyn7-Jul-09 23:07
harrisyn7-Jul-09 23:07 
GeneralRe: SMPP COM library Pin
Md. Marufuzzaman8-Jul-09 18:21
professionalMd. Marufuzzaman8-Jul-09 18:21 
GeneralRe: SMPP COM library Pin
harrisyn9-Jul-09 3:37
harrisyn9-Jul-09 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.