Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

ironclads

@ironclads
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Exporting Images From Word
    I ironclads

    Yes, I've done alert prompts after the bmp save and they come up for each image, so I know its getting into the if statement. Any other help or suggestions for me? Thanks. <<<<TIM>>>>

    Visual Basic help graphics csharp database

  • Automation of Excel through Vb.net
    I ironclads

    I don't know if I can help at all, but as far as I know using Excel as a database isn't possible, not in the truest sense. You can write to and from Excel spreadsheets, the data is access by accessing the file, not by using it as a database backend. I've never seen a usage of connecting to data in excel like a database would. You'll need to use Access or even Sequel Server for something like that. I have some code for writing to Excel spreadsheets. It is written in LotusScript but if you know VBScript or VB you shouldn't have any problems following it. You can also look on http://msdn.microsoft.com/ for help as well on the capabilities of Excel. http://skylab.ironclads.com/codes.nsf Good Luck! :) <<<<TIM>>>>

    Visual Basic tutorial csharp database testing

  • Exporting Images From Word
    I ironclads

    Ok, I know what you are thinking. Why was this posted on the VB.Net forum? Well, let me explain. I Have a DHTML text editor that I currently import Microsoft Word documents into via IE. The only problem is only text comes across currently. I came across info on MSDN that said images can be saved out of Word 2003 as bmp files. So far I can open the document, get a handle on each image, and copy them to the clipboard, but for some odd reason, probably my fault , I can't seem to save them to the hard drive. I've included the code below, perhaps you can assist, especially if you know MS VB.NET and VBScript better than I, which wouldn't be difficult to do. Basically I get the image copied to the clipboard fine but then I don't seem to be saving anything out. Nothing fails, it just doesn't save. Any help would be greatly appreciated. Sub ImportWordDoc() On Error Resume Next Set wApp = CreateObject("Word.Application") wApp.Activate wApp.WindowState=0 call wApp.Resize(400, 400) Set wDoc = wApp.Documents.Open(document.all.FileToOpen.value) wApp.Visible = true For index = 1 To wDoc.InlineShapes.Count inlineShape = "" Set inlineShape = wApp.ActiveDocument.InlineShapes(index) inlineShape.Select() wApp.Selection.CopyAsPicture() data = "" Set data = Clipboard.GetDataObject() If data.GetDataPresent( GetType( System.Drawing.Bitmap )) Then bmp = "" bmp = CType(data.GetData(GetType(System.Drawing.Image)), Bitmap) bmp.Save( "C:\mybitmap" + cstr(index) + ".bmp" ) End If Next Call wDoc.Close(True) call wApp.Quit(True) End Sub Any help or suggestions would be greatly appreciated. Tim

    Visual Basic help graphics csharp database

  • Exporting Images From Word
    I ironclads

    Ok, I know what you are thinking. :doh: Why was this posted on the web forum? Well, let me explain. I Have a DHTML text editor that I currently import Microsoft Word documents into via IE. The only problem is only text comes across currently. I came across info on MSDN that said images can be saved out of Word 2003 as bmp files. So far I can open the document, get a handle on each image, and copy them to the clipboard, but for some odd reason, probably my fault :rolleyes:, I can't seem to save them to the hard drive. I've included the code below, perhaps you can assist, especially if you know MS VB.NET and VBScript better than I, which wouldn't be difficult to do. ;-) Basically I get the image copied to the clipboard fine but then I don't seem to be saving anything out. Nothing fails, it just doesn't save. Any help would be greatly appreciated. ;) Sub ImportWordDoc() On Error Resume Next Set wApp = CreateObject("Word.Application") wApp.Activate wApp.WindowState=0 call wApp.Resize(400, 400) Set wDoc = wApp.Documents.Open(document.all.FileToOpen.value) wApp.Visible = true For index = 1 To wDoc.InlineShapes.Count inlineShape = "" Set inlineShape = wApp.ActiveDocument.InlineShapes(index) inlineShape.Select() wApp.Selection.CopyAsPicture() data = "" Set data = Clipboard.GetDataObject() If data.GetDataPresent( GetType( System.Drawing.Bitmap )) Then bmp = "" bmp = CType(data.GetData(GetType(System.Drawing.Image)), Bitmap) bmp.Save( "C:\mybitmap" + cstr(index) + ".bmp" ) End If Next Call wDoc.Close(True) call wApp.Quit(True) End Sub

    Web Development help graphics csharp database

  • Exporting Images from Word
    I ironclads

    Ok, I know what you are thinking. :doh: Why was this posted on the VB.Net forum? Well, let me explain. I Have a DHTML text editor that I currently import Microsoft Word documents into via IE. The only problem is only text comes across currently. I came across info on MSDN that said images can be saved out of Word 2003 as bmp files. So far I can open the document, get a handle on each image, and copy them to the clipboard, but for some odd reason, probably my fault :rolleyes:, I can't seem to save them to the hard drive. I've included the code below, perhaps you can assist, especially if you know MS VB.NET and VBScript better than I, which wouldn't be difficult to do. ;-) Basically I get the image copied to the clipboard fine but then I don't seem to be saving anything out. Nothing fails, it just doesn't save. Any help would be greatly appreciated. ;) Sub ImportWordDoc() On Error Resume Next Set wApp = CreateObject("Word.Application") wApp.Activate wApp.WindowState=0 call wApp.Resize(400, 400) Set wDoc = wApp.Documents.Open(document.all.FileToOpen.value) wApp.Visible = true For index = 1 To wDoc.InlineShapes.Count inlineShape = "" Set inlineShape = wApp.ActiveDocument.InlineShapes(index) inlineShape.Select() wApp.Selection.CopyAsPicture() data = "" Set data = Clipboard.GetDataObject() If data.GetDataPresent( GetType( System.Drawing.Bitmap )) Then bmp = "" bmp = CType(data.GetData(GetType(System.Drawing.Image)), Bitmap) bmp.Save( "C:\mybitmap" + cstr(index) + ".bmp" ) End If Next Call wDoc.Close(True) call wApp.Quit(True) End Sub

    Visual Basic help graphics csharp database
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups