|
You going to have to be more specific about the .DLL project. What kind of project did you create? What kind of server are you creating?
There is no way to just convert a .DLL into a server. Your project must be written AS a server from the very beginning...
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have take this sample program at microsoft.com
ms knowledgebase 238228 how to create office2000com addin in vb
and trying to create addin for office application. I am using the sample with
IDTExtensibility2. the problem is when using this sample i can't get the event to DocumentBeforeSave,DocumentBeforeClose some how
anyone has sovled this problem?
Shin
|
|
|
|
|
Could anybody help with the following!
I would like to send a string to another external application input field.
|
|
|
|
|
Additional clarification.
External application could be any, example MS Word. The sequence of steps is the following.
1. click somewhere in external application input field
2. go back to your own application
3. send string and it goes to external application to the position where it was clicked.
Thak you for your help
|
|
|
|
|
Take a look at the SendKeys class. This example is straight out of the online help:
AppActivate("Untitled - Notepad")
SendKeys.SendWait("Hello world!")
' Send Ctrl S to open the Save As dialog box.
SendKeys.SendWait("^S")
' Send the name of the new file.
SendKeys.SendWait("c:\HelloWorld.txt")
' Send Alt S to save the file.
SendKeys.SendWait("%S")
Charlie
if(!curlies){ return; }
|
|
|
|
|
It is not working in this case. External application is not activated within your program. There is no: AppActivate. It is external application, or process.
|
|
|
|
|
Are you using VB.NET?
Charlie
if(!curlies){ return; }
|
|
|
|
|
yes, of course. I know I can use sendkeys.send in order to send sequence to the application which I've activated within my program. My, question how to send it to application which was started externally.
|
|
|
|
|
|
You will probably have to import the Microsoft.VisualBasic namespace at the top of your code:
Imports Microsoft.VisualBasic
Also, you will find that this method has its problems. Your user CANNOT click anywhere on the user interface and another application must not open another windows (like in a login script) while the code for AppActiveate and SendKeys is running. Doing so will send the keystrokes to an unintended destination window and your control attempt will fail.
[EDIT]
Oops! Wrong recipient! Sorry!
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
To use the AppActivate method, you will probably have to import the Microsoft.VisualBasic namespace at the top of your code:
Imports Microsoft.VisualBasic
Also, you will find that this method of control has its problems. Your user CANNOT click anywhere on the user interface and another application must not open another windows (like in a login script) while the code for AppActiveate and SendKeys is running. Doing so will send the keystrokes to an unintended destination window and your control attempt will fail.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Unless there specific cells you wanted to compare, you would use a loop within a loop to compare a block of cells between two sheets. This example will compare the values between A1:J10:
Dim row, col As Integer
Dim cellID As String
For row = 1 to 10
For col = 1 to 10
cellID = Chr(64+row) & col.ToString("##")
If sourceWorksheetObject.Range(cellID).Value <> _
compareWorksheetObject.Range(cellID).Value Then
' Cells are not equal, do something about it...
Else
' Cells ARE equal
End If
Next
Next
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ListView, Datagrid
Why invent the wheel, when you can invent software.
|
|
|
|
|
There are two ways to do this. If you want to use a DatGrid, you'll have to open the .XLS file using ADO.NET and the Excel data provider. You'll treat this just like a database. The other method involves adding a reference to either the Microsoft Excel Object Library or the Microsoft Office Object Library. You would then place this control on your form and manipulate it just like you would if you were using VBA inside Excel. You could tell your instance of Excel to load the file and display it, then the user would have all the functionality of Excel inside your app.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am bussy with a project that requires me to monitor a workstation, the problem is that I cann't tell if it is locked.
Does anyone know how to tell if a workstation is locked or not.
Must work on NT4,W2K and WXP
Why invent the wheel, when you can invent software.
|
|
|
|
|
You can't tell if the workstation is locked using remote calls, unless you have a small server process that can send this kind of data to your monitoring app. You would ask your server process if the workstation is locked or not. As of yet, I haven't been able to determine exactly how the server app would know this...
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I would like to create a Data Traffic Analyzer in VB.Is it possible to generate a graphical interface necessary for this.Please help.
|
|
|
|
|
You might want to define what a Data Traffic Analyzer is... I take it it's like a network monitor, traffic capture, and packet analyzer?
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I just wanted to add password security for my application. But i want to use an existing algorithm like blowfish or best suggestion. I just want a push in the right direction for this implementation.
|
|
|
|
|
Look at www.planet-source-code.com and search for blowfish. Lots of examples
Why invent the wheel, when you can invent software.
|
|
|
|
|
I am trying to read a vector image file *.ai. How can you convert the file to a set of coordinates (Biezer curves etc). Or is there another file format which lends itself to this task.
I have converted to a raster image but in order to maintain detail it involves creating a very large file.
|
|
|
|
|
You would have to either find a 3rd party rendering control that knows about .AI image files or would haev to write one yourself. Basically, you'd start out with a blank bitmap in memory of the dimensions requested, then start parsing up the .AI file and executing the drawing commands on bitmap image scaling the coordinates to the bitmap image size.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
i have a datagrid filled from a DB and i want to know the number of rows..
how may i know it?
|
|
|
|
|
The number of rows on the datagrid will match the number of records in the dataview it's bound to. So the number of rows should be:
Dim numRows As Integer
Dim dt As DataTable ' This is the table returned from the database
Dim dv As New DataView(dt) ' Creates a new DataView for the table
DataGird1.DataSource = dv ' bind the grid to the dataview
DataGrid.DataBind()
numRows = dv.Count()
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Send email is easy enough. But my question now is how to send a user html-email if his/her email program is html format enabled, or send alternative plain text email if otherwise.
Thanks guys,
|
|
|
|