Mat,
The code you gave me is for extracting the username, but I I want to know the clients PC Name, not the Client Name.
Kristof
Live fast, die young and leave a beautiful corpse behind.
I have an application that is installed on one of our servers. Through a Citrix ICA Connection, users can access this program from their PC. Is there a way that I can extract the client name (= client PC Name).
Live fast, die young and leave a beautiful corpse behind.
I want to fill a table variable with data from different tables.
I always get the following error code "Must declare the variable '@outputtable'.".
Can someone tell me what I'm doing wrong here?
declare @sourcetable sysname
declare @outputtable table (IDNr nchar(12), Description...
I'm using a citrix connection to open a my program. On the server we installed all the available printers. The users however doesn't have access to all of those printers. Is there a way, through the VB.Net code to get a list of all available printers of the user who is connecting to the server...
I'm want to set the default printer of a PC through my code. I can get a list of all the installed printers but I don't know how to set the Default Printer. The default printer depends on the user that opens my program.
I want to set the printer plmik05 as default.
Code:
Dim t As Integer = 0...
Hi,
Is there a way in JAVA to retrieve the return value of a User Defined Function, designed in my MSSQL database.
udf_RetrieveDienstNaam = User Defined Function from my database.
String sql = "{? = call dbo.udf_RetrieveDienstNaam(1)}";
ResultSet rs;
Connection con...
I want to set a Wordfile as ReadOnly at a certain time. I do this with the following code.
Dim aFile as string = "C:\FileName.doc"
File.SetAttributes(aFile, FileAttributes.ReadOnly) = FileAttributes.ReadOnly
The file is ReadOnly but it isn't visible anymore in my Directory. When I set the...
I'm writing data from VB.net to a Word Document. Is there a way to create a BulletList in my Word file.
Live fast, die young and leave a beautiful corpse behind.
Hi,
I'm writing a MDI application and I'm try to lock the application if the application is idle for more then 10 minutes.
Can someone tell me how I can do this. On the moment that the application should be locked there can be several forms being open.
thx
Live fast, die young and leave a...
Hi,
I want to export some data to an Excel File.
I've two problems:
- the data is always different (the user creates a select query)
- the time to export is also always different
Is there a way that I can overcome this problem.
I've tried to make a DTS package but the data is always the...
Hi,
I'm trying to access a bookmark in a header of my word document by using a macro. Can someone tell me how you can do it.
Thx
Live fast, die young and leave a beautiful corpse behind.
I created a SP that shows me the last IDNr for a certain table. The problem is that the variable @nr never gets a value. Can someone tell me what is wrong here
create proc test
@aTable as nvarchar(255)
AS
declare @sql as nvarchar(2000)
declare @nr as nchar(12)
set @sql = 'SELECT ' +...
Is there a way to check if a Word application, Excell application or a Powerpoint application is running?
Live fast, die young and leave a beautiful corpse behind.
I'm trying to open Excel from my VB.net application and I always get the following Error Message:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Office.exe
Additional information: Old format or invalid type library.
I've added the Microsoft Excel 9.0...
Is there a way to check if a ScrollBar is visible in a Panel. I'v tried the following:
Dim aPanel as Panel
Dim blnVisible as boolean = aPanel.VScroll
The problem is that the method is protected.
Live fast, die young and leave a beautiful corpse behind.
I create a procedure with a certain argument to be passed.
When a user uses this procedure he must get a list of all available values for that argument.
example:
myProcedure (aValue As myProcedureValues)
Possible values are:
- MyProcedureValues.SendItem
- MyProcedureValues.DeleteItem
-...
Hi,
I've got two Strings that I want to show in 1 label. The problem is that I want to align the first string to the left and the other string to the right. Is there a way to do it. I've tried to insert a number of spaces but that doesn't work.
I want a result that looks like this:
New...
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.