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. Viruland

    Citrix: Retrieving the client name

    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.
  2. Viruland

    Citrix: Retrieving the client name

    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.
  3. Viruland

    Filling a table variable with sp_executeSQL

    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...
  4. Viruland

    Citrix client: Retrieve Defaultprinter of the user

    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...
  5. Viruland

    Set Default Printer

    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...
  6. Viruland

    Retrievingthe Return value of a User defined function

    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...
  7. Viruland

    SetAttributes to a Word File

    Yes, it is still visible. Live fast, die young and leave a beautiful corpse behind.
  8. Viruland

    SetAttributes to a Word File

    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...
  9. Viruland

    Programming a Bulletlist in Word

    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.
  10. Viruland

    Locking an Application

    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...
  11. Viruland

    Exporting data to Excel

    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...
  12. Viruland

    Acessing a bookmark in a header

    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.
  13. Viruland

    Dynamically building a SQL statement

    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 ' +...
  14. Viruland

    Launching Excel From VB.net

    Fawkes, I've already try that but I still get the same error. Live fast, die young and leave a beautiful corpse behind.
  15. Viruland

    Checking of an Office Application is running

    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.
  16. Viruland

    Launching Excel From VB.net

    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...
  17. Viruland

    Checking of a database connection is open

    Hi there, Is there a way to check of a connection to a MS SQL Server is already open. Live fast, die young and leave a beautiful corpse behind.
  18. Viruland

    Scrollbar visible in Panel

    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.
  19. Viruland

    List of possible values of an argument in a procedure

    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 -...
  20. Viruland

    TextAlign in a label

    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...

Part and Inventory Search

Back
Top