Adding Printers Port Programmatically
Feb 2, 2009
I have been attempting to do this in so many ways. I have tried using rundll32 printui.dll, PrintUIEntry and for some reason it stops working on vista. I have no clue why. It wont even try to work with HP printers using the inf file. What is the best way to add a LPR port printer programmatically? I can create the LPR port with NO issue what so ever.
View 3 Replies
ADVERTISEMENT
Sep 23, 2009
Trying to write a Vbscript. Actually, I'm trying to modify an existing script that I found on the internet. I basically need the script to run on workstations, delete printers from our old print server (master), and install the corresponding printer from our new print server (dc01). I should also mention that the printer names have changes slightly. So far, the script does a great job of deleting printers from Master, but none of the corresponding dc01 printers are installed.
Here's the code:
CODE:
View 1 Replies
Apr 26, 2010
how I can add a Month control to appear in the centre screen when I click a button?
View 1 Replies
Dec 14, 2011
I'm looking for adding a control on top of others controls during runtime.
I read that the only way of playing with the Z-Order of controls is by playing with the order of the controls inside the Form.Controls Collection. I find this solution very weird and weak and I'm looking for an alternative.
Does anyone has an idea? I just want to make some kind of modal dialog that'll show below another user control to notice the user that the user control is currently doing something.
Edit: I tried using Control.BringToFront() but it doesn't work at all.
View 1 Replies
Sep 8, 2010
I am using VB.net to ping a domain/IP, using the following code;
My.Computer.Network.Ping(Address, 1000)
I now want to add a port to the domain/IP - e.g google.co.uk:21
How would I go about this?
View 3 Replies
Oct 31, 2010
I am trying to add a datatable to a database. Here's what I've been trying:
Dim newDataTable As DataTable = New DataTable("Example")
VocabularyDataSet.Tables.Add(newDataTable)
SqlDataAdapter1.Fill(VocabularyDataSet.Tables("Example"))
I've tried various incarnations of Fill and Update. But the tables will not save on the database!
View 2 Replies
Aug 21, 2009
Is there a way to loop through each constant in the ControlChars module programatically? I want to add each of the enumerated control characters to a combobox control.
View 2 Replies
Jul 10, 2010
I'm trying to add a group of four radio buttons to a form. There are other radio buttons so I'm grouping them by placing them on a Panel. However using the below I just get the panel added to the form without the radio buttons... Am I doing something wrong here?
Dim arrRButton(3) As RadioButton
arrRButton(0) = New RadioButton
arrRButton(1) = New RadioButton
[code].....
View 2 Replies
May 31, 2011
I have an MDI application, say name of MDI is MDIParent. From form1 I am adding new tab pages to form2. In the first tab of form2 I have generated a ListView by calling a ListViewCreate() function in Load event of form2. I am not able to generate ListView for the new tabs. I tried calling the ListViewCreate() while adding newtab. But, it is not creating listview nor throwing any error.
View 4 Replies
Feb 16, 2009
I am adding a TextBox to my asp.net page programatically via a PlaceHolder Control. However when I set the TextMode value to MultiLine I get this error:System.FormatException: Input string was not in a correct format.
View 3 Replies
Apr 9, 2009
I have a unbound datagridview for which i want to add a new row at the bottom when a user selects a value in the 2nd column of a 9 column DGV. The issue is that i have a default value (0.00) programmically entered into the last row once this 2nd column value is entered. When i call DGV.rows.add() it places the new row at teh top, but when the user enters or changes the last coulmn value then a new row is added at the bottom. I want my programmically added row to be at the bottom and have not found a way of doing this.
PS. What is the logic behind this different behavior on adding rows?
View 4 Replies
Apr 22, 2009
OK - I have worded this search 40 different ways and I seem to be lost here. Every example I find seems so happy that you can easily drag and drop a datagrid and let the user fill it in -- then they stop! I know how to do everything I am asking through LINQ. That obviously won't translate here. I really should have learned ADO.NET first, then LINQ, but NOoooo... I need to know how to do the following in .NETCF (Windows Mobile 5) using a SQL CE database on the device.
Add a new record and populate some or all of the fields with data I supply. I don't need to add a record to a datagrid - sometimes the user will not even see the record. How do I add a new record -- put data into it and save it? For example: Create a new delivery record, say, and have the program store the date in one field and a number in another field. Search for a record, then update data in it. Again, using LINQ I can do this easily -- I cannot for the life of me find any examples of doing it without it.
I can find lots of examples of populating a grid of databound fields, letting the user make changes then saving it out. I don't need to do that. Say I need to search for the one record that meets a criteria (customerID=10 and orderID=1234), then when (if) that record is found, update a field in it.
View 3 Replies
Oct 7, 2011
I am trying to create a new item in a sharepoint list. Not getting any error messages but the item does not appear in the list.
Here is my code:
'Declare and initialize Lists Web service.
Dim listService As New Lists()
'Authenticate
[Code].....
View 1 Replies
Dec 10, 2009
I'm trying to use a split button from a tool strip to add and remove selected items in a listview.Users click the button to add the selected item which appears in the split button drop down menu as checked.The drop down menu has three items at any one time, each with a default value of <none> - this is replaced with the text from the listview when an item is added.When users click the item from the drop down, the item is unchecked and the text returns to <none>.
The drop down should populate from the top down so if a user removes item 1 or 2, the items below would appear to be moved up with the 3rd item now showing <none>.
[Code]...
View 1 Replies
Jul 30, 2010
1. I have a DataGridView box, that is connected to a MySQL database via the 'Data Source'. I am trying to do the datagridview1.rows.add("info here"), however i receive an error i cannot do this programmatically. I DO know the code to post to MySQL via the "insert into" la la la.However, I was curious if I can do this via the datagridview a bit..easier/simpler, such as a "datagridview1.rows.add(stuff)" sorta thing.
2. I am attempting to make a custom control, and as with ANY control, they have their.. settings. Example, a textbox, or label, has so you can set the Text. and color, etc.Others, have it (such as datagridview) have the little icon on the control itself, where you click it, and it opens a small window with settings.
View 8 Replies
Jun 16, 2010
A few more details. I need to programmatically (Winforms, VB.NET) check if a site is in the Allowed Sites list of the IE Pop-Up Blocker (IE 7 and 8 and Windows XP, Vista and 7) and if not, add it. The application is fully trusted and I don't want to disable the Pop-Up blocker entirely. To clarify some things, this is for a web-automation application with several users across 3 countries. I want to avoid receiving tons of emails and explaining each time how to add the website to the Allowed Sites manually. Also, some of the users have Google Toolbar installed, which also has a Popup Blocker creating trouble to my app. Can this also be done programmatically?
View 1 Replies
Feb 3, 2009
is there a way through vb visual express 08 to ask a printer if it has toner or paper? im not to sure on how to communicate with printers in this way if it is at all possible.i am writing a program to display the status of the printer and this is key.
View 1 Replies
Nov 28, 2009
When you go to the Start button and then "Printers and Faxes" and you see a list of the printer objects defined on that PC. In my App VB.Net app I want to be ale to use a drop down box to display this list of printers and allow the user to select one of them.So, Not necessarily a list of printers on the Intranet that the user is connected to, only on their personal PC.
View 1 Replies
Aug 27, 2011
How can i create a program using vb.net to add and remove networked printers?
View 2 Replies
Jun 11, 2011
how to set the printers paper orientation using vb dot net
View 17 Replies
Mar 10, 2009
how to set the printers paper orientation using vb dot net
View 1 Replies
Mar 15, 2010
I have a routine, with the printDoc_PrintPage() function where i loop my pages and print them on the default printer.
What i need to do is print page 1 on a special printer and the other pages on the default printer.
View 1 Replies
Jul 29, 2010
How can i control the printers paper source?
Im printing a document but i want the user to only be able to print from the Manual feed tray on a HP 2055dn printer.
i currently have ths code in place but is anyone able to tell me if it would work or not.
i was using a print dialogue box but changed my mind as i just want to print the document as soon as the button is pressed.
' Allow the user to choose the page range he or she would
' like to print.
PrintDialog1.AllowSomePages = True
[Code].....
View 16 Replies
Aug 15, 2011
I have multiple forms and reports with different print area. Some are designed to print to a thermal label printer and others to department shared printers. Currently the user is able to change the printer in print dialog box and print to differernt printers. I want to be able to create a form where the user can assign different printers for different jobs and not have to worry about it.
The problem is, i have never worked with printing function and my collegues arent too smart so I was wondering if someone can throw me ideas on where to start so i can start googling for it.
View 1 Replies
Jul 16, 2009
way to detect Detect physical/Virtual Printers in VB.Net?
View 1 Replies
Mar 6, 2012
why this code doesn't work?
Dim s As String
For Each s In PrintDocument1.PrinterSettings.InstalledPrinters.ToString
MsgBox(s)
Next
View 6 Replies
May 15, 2012
I have what is basically a text only printer (a Zebra 105SL) connected to my network at a static IP address. I have downloaded Zebra's Text only driver for it and set up a print queue named "Zebra North Text". I can print to that queue from Notepad just fine.
However, I am trying to print from a VB 2005 (soon to be upgraded to VB 2010 or VB 11) application. All of the standard VB sample printing code assumes I need to render the text in Fonts, etc, which just confuses the Text Driver.[code]...
View 6 Replies
Sep 9, 2009
I need to check all the printers of my faculty by sending a test page to everyone of them. And I want to do that with a little program in VB... All the printers are in the same server. I've found this piece of code : It should get the names and put them in a list box (the following code) and them send the print request
[Code]...
View 15 Replies
Oct 9, 2009
Am looking at making a small application that will list printers on two file servers at two separate sites, from this app they can add the printer/s to there local computer.
I have found a small application on the web but there are a few improvements it could do with.
They are; Show all local printers without having to click on a check box. Show sites printers without having to click on a check box. Show comments about the printer�s location other then just the site.
If it is possible I would like to update this one, but if there are any other examples where I could download something similar, or even some help with how to begin to create a new application.
Here are some screen shots, of the application form and the xml which holds the folder structure for the sites.
View 1 Replies
Mar 16, 2012
I need to list printers on a remote pc and am gettings errors trying to use wmi code but I am open to another way of doing this,
Private Sub DetectPrntrs()
Dim strComputer As String
Dim colPrinters As String
[code]....
I get the error:'Name' is not a member of 'Char'.
View 5 Replies