|
Hello,
I am trying to write a simple program that will export embedded images from an MS-Word file and save it as an image on my machine (either tiff or jpeg). Is there an image object model built in that can extract this type of data? (Note: the Word file could be open or closed. It does not matter)
Thanks
Harry Wishes
|
|
|
|
|
A while back I wrote an article on XSLT with Word documents, and one of the responders had a great tip on handling embedded images and saving them off:
Word 2003 CodeProject Article Template[^]
XML/XSLT is probably not the first thought you had for a solution on this, but depending on your situation it is a possibility. I think the other route to take is through interop - the Microsoft.Office.Interop.Word namespace.
|
|
|
|
|
|
I have a small application and use iText to modify a .pdf. I then use the web control to display the pdf in the form for the user.
If the user makes modifications to the paramaters used to generate the document, The application generates a new file, then displays the new file, then attempts to delete the old file; however, I receive a message that the file is still being used by another process. How can I release or dispose of this file, so it may be deleted?
Thanks,
Steve
|
|
|
|
|
What control are you using to show the .PDF file?? You're best source of information liek that would be the people who wrote the control you're using.
|
|
|
|
|
It's the WebBrowser on the Tool bar in Visual Studio. I would assume it is Microsoft that is distributing the object, but I don't know.
|
|
|
|
|
The webbrowser is not showing the PDF. A control registered with Internet Explorer is doing it. The webbrowser control is nothing more than a stripped down version of IE.
|
|
|
|
|
Then I would say it is the Adobe Reader plug-in, as the tool bars present in the frame are the Adobe tools.
|
|
|
|
|
I need help downloading only the new files from an FTP server. There are more than 30,000 files in a table and I only need the most recent files. The files are by date and time. Any help would be great! Thanks.
|
|
|
|
|
So what's the problem?? You're going to have to get the entire list of files, keep track of what files are there. The next time you get the list, compare the new list to the old one. You've got your list of new files to download then. Download them, keep track of which ones you've successfully downloaded. Once you get the files downloaded, you've got your new list of files you have.
|
|
|
|
|
Hi,
I need to write a script(using vbscript) to send a XML content to the X-mailbox. My mailbox has been configured in Lotus notes. I'm currently using the script like below, but here while sending a mail I want to set the mailcontent type as 'Text\plain' or 'MIME message' type. I should not send a mail which is in Richtext format.
Please can anyone help me to find the solution for this?
function sendemail(emplnum,msg,subject)
dim objNotesSession, objNotesDoc, objNotesDb, objNotesBody
Set objNotesSession = createobject("Notes.NotesSession")
If objNotesSession is Nothing then
msgbox "Could Not create a Session of Notes", 16, "Notes Session Error."
end if
'call objNotesSession.Initializeusingnotesusername("IT-TeknionMalaysia","coffeetime99")
set objNotesDB = objNotesSession.GETDATABASE("TFSMDMS1","mail\slim.nsf")
'Create the mail document
set objNotesDoc = objNotesDB.CREATEDOCUMENT
'set objNotesDoc.ReplaceItemValue("Form", "Memo")
set objNotesBody = objNotesDoc.CreateRichTextItem("BODY")
set curEmployee = new Employee
'Response.Write "employeenum:" & emplnum
curEmployee.GetEmployeeInfo(emplnum)
if curEmployee.err = "" then
With objNotesDoc
.Form = "Memo"
.subject = subject
.Sendto = "seokbee.lim@teknion.com"
.body = msg
.postdate = Date
End With
if true then 'true for real email, false if testing
if objnotesdoc.send = false then
Response.write "The email could not be sent, " & _
"please notify your employee on the status of his/her leave application.<BR>"
response.write emailmsg.log
else
Response.write "<center>An email has been sent to notify " & curEmployee.Name & " of the leave application.</center><br>"
end if
else
'response.write("To: " & curEmployee.Name & " <" & curEmployee.Email & ">" & "<BR>")
'response.write("From: " & emailmsg.From & "<BR>" )
'Response.Write("Subject: " & emailmsg.Subject & "<BR>")
'Response.Write("Body: <BR>" & emailmsg.HTMLBody & "<BR>")
end if
else
Response.write(curEmployee.err)
Response.End
end if
end function
|
|
|
|
|
Hi all, I am very very new to VB and I am trying to use the web control to populate a form on an external website.
I am able to load the site in the control on a form and have added a text box and a command button.
On pressing the command button I am trying to populate a form field on the website with the contents of the texbox.
I have tried all sorts of combinations but none have the desired results.
Any help really would be greatly appreciated.
Thanks in advance.
|
|
|
|
|
The WebBrowser control exposes a Document property that should let you access the DOM document members. Something like this?
WebBrowser1.Document.GetElementsByTagName("Input").Item(0).SetAttribute("Value", myTextBox1.Text)
|
|
|
|
|
Works a treat.
Thanks VERY VERY much.
|
|
|
|
|
Hi,
I have a small project, and after to publish, when I run the setup.exe, the image "Launching Application"
is showing first, and next my project is running.
Ps: Some are said, give 1 splash screen, it will disable that image. I arranged a splash screen, but still that image is appearing first.
And I received another idea, From Pulish Tab -> Update button ->Uncheck, I checked but still appearing that image.
So, any other idea? My application startup with form2 - mdi parent then from its load , I called splashscreen...
Either my splash screen calling is not the proper way?
And better ideas for me?
Thanks
|
|
|
|
|
What sort of app is it, that it shows a message like that ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Once we create a project, and give publish, then the setup.exe is created, and when we run the setup.exe, this message is showing first, after the project is working well.
So anyideas for me?
|
|
|
|
|
The logo seems to be a part of ClickOnce. It's suggested in this[^] post that it can be removed
|
|
|
|
|
I hadn't noticed this before. I think someone else worked out the solution, which is lucky for you, given that you utterly failed to answer my questions.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have a granddaughter who loves to play infant games on the net. But she always hits the ctrl keys etc. which pops up windows etc. Can these be disabled for a short period of time?
|
|
|
|
|
You'd have to write an app that implements a global keyboard hook. You will receive the keyboard messages before they are dispatched to their destination application window. In your hook procedure, you have to determine if you're going to let the keyboard message through or not. If not, you just don't pass it up the hook chain, essentially "eating" the keystroke.
There are plenty of examples of how to implement a keyboard hook[^].
|
|
|
|
|
Thank you Dave! Roxy, my Granddaughter, thanks you as well....
|
|
|
|
|
In addition to Dave's good answer, you might be interested in the AutoHotKey[^] macro program. You can remap keys with this utility, it's free, and it's pretty simple to use.
|
|
|
|
|
Thank you! This might be easier than writing the code myself. Although it would be a great exercise in patiences.
|
|
|
|
|