Click here to Skip to main content
15,885,278 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCompile error Pin
hamed20092-Jul-09 2:13
hamed20092-Jul-09 2:13 
AnswerRe: Compile error Pin
TheMrProgrammer2-Jul-09 3:49
TheMrProgrammer2-Jul-09 3:49 
AnswerRe: Compile error Pin
Dave Kreskowiak2-Jul-09 4:32
mveDave Kreskowiak2-Jul-09 4:32 
Question3D Image Pin
bhargava24092-Jul-09 2:03
bhargava24092-Jul-09 2:03 
AnswerRe: 3D Image Pin
TheMrProgrammer2-Jul-09 4:02
TheMrProgrammer2-Jul-09 4:02 
AnswerRe: 3D Image Pin
Dave Kreskowiak2-Jul-09 4:31
mveDave Kreskowiak2-Jul-09 4:31 
QuestionCrystal Reports 8.5 to email a batch of reports Pin
Raghvendra Kumar Roy2-Jul-09 1:33
Raghvendra Kumar Roy2-Jul-09 1:33 
QuestionImporting html code using HTMLProject object [modified] Pin
Harold_Wishes2-Jul-09 1:00
Harold_Wishes2-Jul-09 1:00 
Hello

I have extracted the html code from a web table embedded in a Word document and stored it in a variable string as shown below. The Word document is saved as an html page in Word.

Dim html_string as String
html_string = ActiveDocument.HTMLProject.HTMLProjectItems(1).Text
Selection.WholeStory
Selection.Delete Unit:=wdCharacter, count:=1
Selection.TypeText Text:=html_string  '''LINE 5 is the problem line


It works very well when I test the script on Word documents with small embedded html tables with few rows and columns but not everything gets stored for large tables beyond a certain number of rows and columns. The string gets truncated after some point. The truncation seems to take place when I execute line 5 above (Selection.TypeText Text:html_string). The "html_string" variable itself retains all of the html code when I throw it's output to the screen so I know for a fact something is happening when I place the contents into the active Word document using the Selection.TypeText method. Is there a character size limit when using the Selection.TypeText method? If so, is there a way around this?

Thanks
Cool | :cool:

Harry Wishes

modified on Thursday, July 2, 2009 9:24 AM

Questionhow to drag video from the webbrowser and download it on a button control Pin
bhumika_singh2-Jul-09 0:58
bhumika_singh2-Jul-09 0:58 
Questionprint prview problem Pin
JC.KaNNaN2-Jul-09 0:29
JC.KaNNaN2-Jul-09 0:29 
AnswerRe: print prview problem Pin
Eddy Vluggen2-Jul-09 2:28
professionalEddy Vluggen2-Jul-09 2:28 
GeneralRe: print prview problem Pin
JC.KaNNaN2-Jul-09 3:38
JC.KaNNaN2-Jul-09 3:38 
GeneralRe: print prview problem Pin
Eddy Vluggen2-Jul-09 6:16
professionalEddy Vluggen2-Jul-09 6:16 
AnswerRe: print prview problem Pin
Henry Minute2-Jul-09 6:55
Henry Minute2-Jul-09 6:55 
Questiondatatable from datasource Pin
thesum1-Jul-09 23:39
thesum1-Jul-09 23:39 
AnswerRe: datatable from datasource Pin
Henry Minute2-Jul-09 0:18
Henry Minute2-Jul-09 0:18 
GeneralRe: datatable from datasource Pin
thesum2-Jul-09 3:36
thesum2-Jul-09 3:36 
GeneralRe: datatable from datasource Pin
Henry Minute2-Jul-09 3:58
Henry Minute2-Jul-09 3:58 
GeneralRe: datatable from datasource Pin
thesum2-Jul-09 5:06
thesum2-Jul-09 5:06 
GeneralRe: datatable from datasource Pin
Henry Minute2-Jul-09 5:17
Henry Minute2-Jul-09 5:17 
QuestionListView doubleClick wont fire Pin
Chana Winkler1-Jul-09 22:48
Chana Winkler1-Jul-09 22:48 
AnswerRe: ListView doubleClick wont fire Pin
Johan Hakkesteegt1-Jul-09 23:44
Johan Hakkesteegt1-Jul-09 23:44 
GeneralRe: ListView doubleClick wont fire Pin
Chana Winkler7-Jul-09 7:34
Chana Winkler7-Jul-09 7:34 
QuestionPrevent other app's I/O Pin
The real $M@1-Jul-09 20:11
The real $M@1-Jul-09 20:11 
AnswerRe: Prevent other app's I/O Pin
Eddy Vluggen2-Jul-09 0:24
professionalEddy Vluggen2-Jul-09 0:24 

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.