User Profile
Collapse
-
I'm using VisualBasic Version 6 -
Invalid Interval of a Word.Range
HI Guys, I have this line:
Code:Dim Range As Word.Range Set Range = Word_Doc.Range(Start:=Word_Doc.Bookmarks("StartText").Range.Start, End:=Word_Doc.Bookmarks("Table").Range.End)
It's working fine on my Virtual Machine with WindowsXP + Office 2007
Also working on my computer with Windows 8 + Office 2013.
But When I tried to run this application on a customer's pc with Win... -
How to insert image to database?
I'd like to know a way to Insert Images to MySql Database.
I tried to follow This tutorial. But didnt get it very well... =\
Any help ? -
How to save multiples files into one
I have a lot of archieves .pdf, I'd like to join them into a single archieve.
I'm trying this code:
Code:MyPath = Replace(strCaminho, "Carta.rtf", "") MyName = Dir$(MyPath & "*.pdf") Documents.Add Do While MyName <> "" If InStr(MyName, "~") = 0 Then selection.InsertFile filename:="""" &
-
I solve the problem just adding
Code:Word_Doc.Close False Set Word_Doc = Nothing
Leave a comment:
-
Error When Create a Blank Word document
I create a blank document like this:
Code:Private Word_App As Word.Application Private Word_Doc As Word.Document Private Word_Rtf_Doc As Word.Document Private Word_Table As Word.Table Private Word_Range As Word.Range Private objRow As Row Private objCell As Cell
-
It's working now \o/ I had to install an Add-in of MS-Word. But now, the characteres are a little bit strange... It still letters and you're able to read it. But it's a little strange you know ? is there a way to fix it ?
I'm trying to find a way/command to renderize the font, but didn't find it yet.
Look:
...Leave a comment:
-
-
I'm using the continuation characters... Just deleted by mistake... Guess I'll have to find antoher way to make this conversion ;\Leave a comment:
-
Code:'********************** WORD **************************** Private Word_App As Word.Application Private Word_Doc As Word.Document Private Word_Rtf_Doc As Word.Document Private Word_Table As Word.Table Private Word_Range As Word.Range Private objRow As Row Private objCell As Cell
Leave a comment:
-
The Strange thing is that if I try this code:
Code:Word_App.ActiveDocument.SaveAs filename:=strPath & "\doc1.doc"
but when I try to convert it to PDF it gives me the error =\Leave a comment:
-
Convert Word Doc to PDF
I finally finished my word doc. But now I was told to create a PDF instead u.u
I tried this code:
Code:Dim Word_App As Word.Application Set Word_App = New Word.Application 'Create and fill the word document. 'Save the document as PDF Word_App.ActiveDocument.ExportAsFixedFormat OutputFileName:=Replace(strPath, ".rtf", "") & " - " & vtCartas(iMarcaCartasIndividuais).strMatricula
-
Omg man, I'm not that dumb u_U
The grammar errors are all Names of persons... Not that grammar you're thinking u_U
May I add these names to dictionary by code?Leave a comment:
-
Too Much orthographic errors to show the document
I'm creating a word document with more than 800 pages.
But I'm facing two problems:
1- It's take more than 20minuts to finish;
2- When it's almost finishing, it shows the message:
Too Much Ortographic Erros to show the document
then the whole operation is ended.
How may I fix these problems?
The code to create the document and fill it with data, is inside a loop, so... -
Got ya...
BUt how do I do that? I'm not used to work with VB ;s
I used to work with C# '-'
Could you give me a hand ?Leave a comment:
-
Insert into a word document an Image from Database
Does anybody know how to insert a picture from a database to a bookmark in a Word Document using vb. ?
I know how to insert image by the path, like
Code:Word_App.Selection.InlineShapes.Add.Picutre FileName:="C:\Images\winter.jpg"
All I need to know is how may I insert this image into a word document?
... -
Hmm, thanks !
So how may I accomplish what I wish ?
Just make a Ctrl+C & Ctrl+V ?!Leave a comment:
-
Copy the content of a word doc to another
Hello everyone !
I'm trying to copy the content of WordDoc-A and paste it to WordDoc-B...
I'm trying to work with this:
Code:Word_Doc.Content.Copy
How may I do that ? -
Working with a giant quantity of characters
Hi Guys !!
I have something like this, inside a loop:
Code:Dim strContentHolder As String Dim strIncomingContent As String strContentHolder = strContentHolder + strIncomingContent
As the title says, the strContentHolde r that is inside a loop, so the code above will happens a lot of times, like 200x or more... So the memory consumed will be too much,... -
Thanks again³.
Yes, But I don't know how to set the range to the end of the text... I'm trying to understand this Bookmarks, but I'm not going very well ;x
UPDATE 2
Its over haha ;D Thanks so much !!!!
Finally !
I did as following for those who may be in the same situation as mine:
Code:Word_Doc.Bookmarks.Add("NameOfTheBookmark")
Leave a comment:
No activity results to display
Show More
Leave a comment: