Specifying Extra Data For Non-printer Printers (e.g. Filename For PDF, Phone Number For Fax)
Dec 22, 2010
Some printers aren't actually printers e.g. CutePDF, PDF995 etc are printer drivers that "print" PDF files, and the built in fax support for Windows is through a printer driver that "prints" to the fax modem.
Both PDF and fax need a little bit more information than a normal print job - PDF needs a filename, Fax needs a phone number. Usually there is a pop-up dialog that prompts the user for the extra information.
Is there any way to set this information programmatically?
There is a property Printing.PrintDocument.PrinterSettings.PrintFileName but this only seems to work when Printing.PrintDocument.PrinterSettings.PrintToFile is set to TRUE, which is not the case in these situations (even though a PDF printer writes a file, it is not "save print job to file" in the normal sense).
View 1 Replies
ADVERTISEMENT
Sep 15, 2011
I have a window form with a label. On the form I have a dataset, bindingsoure, and tableadaptor (all created by the IDE in response to binding the text property of the label) To fill the datatable, the IDE created this: Me.ClientsTableAdapter.Fill(Me.MyDataSet.Clients) Works fine. The bound field is a phone number, stored in the db as a 10 digit numeric string I need to format this with the standard ()-, and I have a function that will do just that. How can I apply the formatting so the phone number appears in the label properly?
[Code]...
View 3 Replies
Feb 11, 2012
validation in vb.netemail_id validation,name,mobile number,Telephone number,zip_code,address i want to all code the textbox
View 3 Replies
Oct 4, 2011
Details : I have the MultiModem (MT5656ZDX) . I wrote visual basic application for making the call using 'MakeCallAsynch(txtPhoneNumber.Text)' function. Also i have the callback event handler for get the line status and write the log. But my tapi call is not going the status except DAILING,PROCEDING,CONNECTED,DISCONNECTED and IDLE. Its not showing the line busy, phone swithed off status. Please guide me regarding this.
My event handler
Friend Sub LineProcHandler(ByVal hDevice As Long, _
ByVal dwMsg As Long, _
ByVal dwParam1 As Long, _
[code]....
View 10 Replies
Dec 10, 2009
I have the MultiModem (MT5656ZDX) . I wrote visual basic application for making the call using 'MakeCallAsynch(txtPhoneNumber.Text)' function. Also i have the callback event handler for get the line status and write the log. But my tapi call is not going the status except DAILING,PROCEDING,CONNECTED,DISCONNECTED and IDLE.
Its not showing the line busy, phone swithed off status. Please guide me regarding this.
[Code]...
View 1 Replies
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
Feb 29, 2012
Assuming that I am going to add new record. I use this function to generate the ID for the new record.
Public Function GetMax(ByVal strTable As String, ByVal strField As String) As Integer
Dim cmd1 As New SqlCommand
Dim conn As New SqlConnection(gStrConnection)
Dim no As Integer
Dim str1 As String
[Code] .....
It returns 1. How can I modify this to make it 20120001 wherein the first 4 number (2012) will depends on the year today.
View 8 Replies
Oct 15, 2009
I want to display a phone number in a text box like this:
"(828) 524-5121".
In VB6, I could do this:
temp= Format("8285244121", "(###) ###-####")
and temp would be "(828) 524-5121".
If do this in VB2008, temp is "(###) ###-####".
View 15 Replies
Apr 14, 2009
I'm looking to create a windows application in vb.net or c#.net that will capture the phone number of incoming calls. This would be a land line. What would the hardware requirements be?
View 3 Replies
Dec 13, 2009
I have had a look over some posts in here on a similar theme as to my question but none of them are getting me any further forward. All I am trying to do is make sure that when a phone number is entered in a textbox that it conforms to the following formats:
1) #### ### #### (All numbers)
2) ##### ###### (All numbers)
3) ###### (All numbers)
View 2 Replies
Jun 21, 2010
just as the question says. I get numbers like 2125550938 or 20298277625552. these should change to (212) 555-0938 and (202) 982-7762 x 5552 respectively. this is in vb.net
View 4 Replies
Nov 18, 2009
I don't really need all the code, just a method of doing something.I'm trying to do number #42 on page 496 of the VB 2005 book. I'm able to get each number from each button on the phone to display, but I'm not sure how to go about adding the numbers to the number already on the screen. I can get 1 then a 2, then a 3, etc but not 123.
I believe the method is adding to a string, and I know I have to use concatenation or something.. I just need a push in the right direction.
View 5 Replies
Feb 24, 2009
I know this is an easy one but I cant seem to find it with searching..I have a textbox with a phone number as follows: 1234567890 how can I split that phone number and put it into 3 new textboxes like this [code]I have seen it done in vb6 with left,mid, and right but it seems that it doesnt work the same with vb.net
View 2 Replies
Nov 23, 2009
I'm trying to format a phone number in VB.NET 2008 in the code. user can type in this numberfor example: (203) 555-1212The format I would like the phone numbers to appearis this:203.555.1212I haven't been able to find the correct format.I tried this:Dim x As String = "(222) 333-4444"Dim joe As String = String.Format("{0:###.###.####}", x)
View 4 Replies
Oct 27, 2011
i have this problem iam working on its a phone number word generate i have a code that is correct no errors just 2 problems 1. my generate button is not working and 2. how can i get the words generate to appear like say the number is 4247288 the word would be Haircut here is my code:
[Code]...
View 6 Replies
Feb 14, 2011
Our company has an old intranet site, that has 1000's of pages, and ive created a loop to look at them all, but i wanted a way to put all the phone numbers it can find, into a text box, i have the code below but cant seem to get it to work.
Sometimes the phone numbers can be 111-222-3333 (111)-222-3333 111 222 3333
'Reg exp for phone number
Dim myMatch As Match = System.Text.RegularExpressions.Regex.Match(My_Text, "^([2-9]{3}-)?[2-9]{3}-d{4}$")
[Code]....
View 9 Replies
Mar 31, 2010
I have searched on google and asked friends, but have not figured out a way to add dashes while a user is typing either a phone number or a social security number or something of the like. I am using Visual Studio 2008, VB Windows Form. This is not for homework but I enjoy adding things to certain projects and thought this would be neat to incorporate into one of mine. I am also curious about allowing the user to enter the first three numbers for their area code and then send the focus to the next text box so that the user can type the rest of their number. I was thinking I could do something with the text box text entered event procedure where I would send the focus after three characters entered. Not 100% on the entire idea or if there is an easier way.
View 1 Replies
Aug 18, 2010
IF cell phone is connected with PC over BlueTooth or Wireless and someone call that cell phone is it a possible to get caller person number from cell phone ?
View 5 Replies
Aug 19, 2009
I have a field defined as string for phone number which in my SQL cast to Integer.
Format the column as follows
DataGridView1.Columns("ContactPhone").DefaultCellStyle.Format = "(###) ###-####"
This works as expected for cells with a phone number but for cells without a phone number I get
{}- Which seems like the proper output for what I specified.
is it possible to format cells with no data (no phone number) to show up empty in their cell?
View 3 Replies
Mar 27, 2012
I have a databound textbox that I would like formatted as a phone number ((###) ###-####), instead of being displayed as 10 numbers.
I'm using this on a databound label, which works fine. The same doesn't work on a textbox, though.
phoneNumber = CDbl(lblPhoneNumber.Text)
lblPhoneNumber.Text = phoneNumber.ToString("(###) ###-####")
Anyone know of something that will work with a textbox?
View 2 Replies
Apr 27, 2011
I need to take a fully formated number:
Ex: (111)-111-1111
And take out all the none integer characters, such as parens, hyphens, and spaces.So far I have:
sNumber = txtNumber.Text
If sNumber.Contains("-") Then
sFixed = Replace(sNumber, "-", "")
lblNumberOut.Text = sFixed
[code]....
sNumber and sFixed are both declared class/global level. The thing is, I've made two separate if's, i've made the second one an elseif, It just only enacts one if statement, such as only taking out the hyphens and not taking out the parens, or vice versa. I'm thinking i need to declare multiple sFixed (sFixed1,2,3, etc) but that seems terribly inefficient.
View 8 Replies
Jun 12, 2011
I'm trying to validate the correct format for a phone number in a text box: (000) 000-0000 For a test, i made it so that a messagebox shows up saying "correct" if the format is correct. This test works well WHEN the format is correct. BUT when the format IS NOT correct, I keep getting an error saying that the index was out of the array.
[Code]...
View 3 Replies
Oct 30, 2009
I am thinking of dialling the number and if it rang then it is existing but I am not sure how to implement such. I am on Vista and it looks like all comm ports are not available or that I don't know how to enable them. Upon googling I have found samples of TAPI but I am unable to make them work, the following code is supposed to call a phone no. but I am getting the exception "Value does not fall within the expected range." on the 2nd line and I am clueless as to how to fix it
[code]...
View 3 Replies
Nov 15, 2010
In one upgarde of my app, I will connect the PC to one Siemens phone, wich create a COM port.Now, I nedd send one number to the phone, for it makes me the call automatically.
View 1 Replies
Feb 8, 2007
I have a label printer (Argox 1000-x) and i want to print some datas on it. And this printer is connected to my computer via the COM1 port. I can open/write COM1. And when i send some data to printer through COM1, Label Printer's Ready Signal Led will be ON/OFF. But it does not print anything or any label..
View 5 Replies
Mar 25, 2011
I know you can get a currency symbol or a data format for a country using System.Globalization. However, is it possible to get the phone number format for a country from it as well. If not is there a way to get this information from the .NET Framework?
View 11 Replies
Jun 27, 2009
I want to make a program which will dial a phone number using modem. In the program there should be dial button and receive button and a text box 4 phone no. i want to make a call and receive from head phone and the program.
View 3 Replies
Oct 31, 2011
I have a textbox for a phone number that formats the phone number to look like this:(123) 456-7891
but I want it to change back to just numbers when the user is finished with the data entry:1234567891 Here's my code for formatting the number:
[Code]...
View 2 Replies
Apr 15, 2012
i try to make a regular expression format to validate phone number at this format: (555) 555-5555 Dim IsPhoneValid As New System.Text.RegularExpressions.Regex("^/([0-9]{3}/)*[0-9]{3}*[0-9]{4}$")
View 3 Replies
Apr 9, 2012
I'm trying to create a function to extract the filename and number from saved files where the filename and number is not known before hand. I successfully created this example but the file name in the example is hardcoded. My program creates backup files and numbers them starting a one. I want to extract the saved files and list them in a treelist by filename only.ie.. unknown filename 1, backup 1, saved file 1, saved file 2, here is what i have but it only retrieves the hardcoded filename.
[Code]...
View 7 Replies