Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. reffek

    Automatic Screen Capture

    I need to write a program to screen capture user's desktops. I did a little research and came up with is: SendKeys.Send("^{PRTSC}") Dim iData As IDataObject = Clipboard.GetDataObject() Dim thisCapture As Bitmap = iData.GetData(DataFormats.Bitmap) thisCapture.Save("\\Path\to\file\filename.bmp")...
  2. reffek

    Disable A Group of CheckBoxes

    What's I'm trying to do is disable and enable a group of checkboxes. I keep getting a stack overflow error. If chkStatusAll.Checked Then For Each controlItem As CheckBox In grpStatus.Controls With controlItem .Checked = False .Enabled = False End...
  3. reffek

    Reboot Machine with VB.NET

    It seems c:\windows\system32\shutdown.exe exists in WinXP but not in Win2K. Any suggestions for VB.NET rebooting under Win2K?
  4. reffek

    Reboot Machine with VB.NET

    What code would you use to reboot a maching using VB.NET?
  5. reffek

    Print MS Word Doc to PDF using Distiller/Adobe PDF

    I'm trying to print to "Adobe PDF" (aka Distiller) but the document just spools forever and never prints. I can do it manually, but my VB.NET code can't do it. Imports Word = Microsoft.Office.Interop.Word Dim avmReportWord As New Word.Application Dim avmReportDoc As Word.Document...
  6. reffek

    Problem Creating an Instance of CAcroACDoc for .DOC to .PDF Conversion

    Still no luck. :( I did see this thread: Original post: http://www.planetpdf.com/forumarchive/87740.asp Reply: http://www.planetpdf.com/forumarchive/87897.asp
  7. reffek

    Problem Creating an Instance of CAcroACDoc for .DOC to .PDF Conversion

    Open" is not a member of "CAcroApp
  8. reffek

    Problem Creating an Instance of CAcroACDoc for .DOC to .PDF Conversion

    Also, "Open" is not a member of "CAcroApp" Like I stated, it was working in VB6... But for some reason .NET can't create the object properly.
  9. reffek

    Problem Creating an Instance of CAcroACDoc for .DOC to .PDF Conversion

    Dim AcroApp As New CAcroApp Causes "'New' cannot be used on an interface
  10. reffek

    Problem Creating an Instance of CAcroACDoc for .DOC to .PDF Conversion

    Here's a snippet of code I am using to convert MS Word docs to PDFs. Similar code works fine in VB6 but in VB.NET is gives me the error "Object reference not set to an instance of an object." The error occurs on this line: AcroDoc.Open("\\path\to\file\test.doc", "") Here is the full snippet...
  11. reffek

    Value of an XML Attribute in System.Xml.XmlDocument

    Okay, now what if there are TWO lines like: <STATUS _Condition="FAILURE" /> <STATUS _Condition="FAILURE" /> How do I differentiate between the first and second?
  12. reffek

    Write to Word from VB.NET

    Ooops, yea, I meant to write that as myDocument = Nothing. I guess there's no way to edit a post after you submit it? I tried the solution at http://www.tek-tips.com/viewthread.cfm?qid=1027496 but no luck.
  13. reffek

    Problems closing excel

    Okay, I cannot get my instance of WINWORD.EXE to go away, here's what I'm doing (yes, it's a little ugly). I'm passing in an XmlDocument that I will be grabbing values out of to put in my Word document, but I haven't gotten that far. Right now, I'm just trying to open Word, create a doc, save...
  14. reffek

    Write to Word from VB.NET

    I'm generating a Word doc in VB.NET, but the problem I am having is that the instance of WINWORD.EXE is not going away once I've generated the word doc. I'm doing the following: Imports Word = Microsoft.Office.Interop.Word Dim myReportWord As New Word.Application Dim myDocument As...
  15. reffek

    XML Parsing and DTD Location

    Anyone?
  16. reffek

    Adding Images to MS Word Doc

    Thanks! I never considered that. :) Looks like this is what I need: myParagraph.Range.InlineShapes.AddPicture("c:\picture.bmp", False, True)
  17. reffek

    Adding Images to MS Word Doc

    When creating a Word Document using: Imports Word = Microsoft.Office.Interop.Word Dim reportWord As New Word.Application Dim reportDoc As Word.Document How do I insert an image? That is, how do I do the VB.NET equivalent of going into Word and doing an "Insert->Picture->From File"? Adding...
  18. reffek

    XML Parsing and DTD Location

    I'm having a problem with DTD validation. The following line is in my XML: <!DOCTYPE REQUEST_GROUP SYSTEM "C2DRequestv2.0.dtd"> When I load that XML using System.Xml.XmlDocument.Load it wants to validate it against that DTD. However, it's looking for that DTD in "C:\Windows\System32". How...
  19. reffek

    Post XmlDocument via HTTP

    Okay, I think I figured it out: xml is being passed here as a string of the XML doc. Dim xmlURI As New Uri(urlToPostTo) Dim xmlSender As HttpWebRequest = HttpWebRequest.Create(xmlURI) xmlSender.Method = "POST" xmlSender.ContentType = "application/x-www-form-urlencoded" Dim xmlStream As Stream...
  20. reffek

    Post XmlDocument via HTTP

    bump

Part and Inventory Search

Back
Top