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")...
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...
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...
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
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...
Okay, now what if there are TWO lines like:
<STATUS _Condition="FAILURE" />
<STATUS _Condition="FAILURE" />
How do I differentiate between the first and second?
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.