How To Print Urdu Unicode Characters Using Printer.print Method ...??
Ive written a code for accepting input in text boxes in urdu language and store it in access database and similarly i can retrieve it back from the database and show it in the text boxes from the database in urdu language in vb6.0. But i cannot print the same urdu unicode characters from the text boxes using the Printer.Print method, and if i do so i got ??????? (question marks) printed instead of the urdu unicode characters. I even tried the rich text boxe's selPrint method also but that also print the same ?????. i wan to print the contents of the text boxes i.e unicode characters in urdu language. Can anyone tell me how to do this as soon as possible ........?? Can anyone share with me the code for doing the above printing of unicode characters?
Waitin for the reply as earliest .......!!!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Print Urdu Unicode Characters Using Printer.print Method ...??
Ive written a code for accepting input in text boxes in urd language and store it in access database and similarly i ca retrieve it back from the database and show it in the text boxe from the database in urdu language in vb6.0. But i cannot prin the same urdu unicode characters from the text boxes using th Printer.Print method, and if i do so i got ??????? (questio marks) printed instead of the urdu unicode characters. I eve tried the rich text boxe's selPrint method also but that als print the same ?????.
i wan to print the contents of the text boxes i.e unicod characters in urdu language.
Can anyone tell me how to do this as soon as possible ........??
Can anyone share with me the code for doing the above printing o unicode characters?
Waitin for the reply as earliest .......!!!
How To Print Unicode Characters Using The Printer Object ?
Hi everybody,
On trying to print unicode characters using :
Printer.Print ChrW$(&H2500)
it does not print the unicode character as shown in the character map. I was thinking of creating bmp files for each of the characters and printing them using :
Printer.PaintPicture FileName
But, how can such bmp files be created ? Or is there any other way to print unicode characters ? Please help.
Printing Unicode Characters (urdu)
hi all.....
someone come across anything that helps print unicode characters.....
i wanna print urdu (or arabic)
i came acros quite a few proggys but none complied with unicodesupport.....they wud simply print.... question marks....
i want to be able to print from a MS Forms 2.0 Object LibraryTextbox....
thanx.
Printer.Print (Unicode)
How can Print unicode
Printer.fontname "Arial"
Printer.print chrW(1050)
is not working.
G.L.
How Can Print To Printer With Unicode Text
I'm using printer object in VB6 but printer object don't support unicode. Can you tell me how can i print unicode text to printer. I hear with API functions we can do that but I don't know what function and the way to use those functions. Please tell me full VB6 source code!!! My email: dstuyen@yahoo.com
How To Check The Printer On The Network Before Printer.print Method?
Hi,
I am trying to write code to be able to give user option to choose a
printer on the network before they can printer the job.
With printer.print method, VB will not prompt the printer on the
network.
It will only print to the default printer.
Is there a way to be able to choose the printer?
Thanks!
Characters Truncated Using Printer.Print
Hey there,
I'm printing to a network printer using Printer.Print and I am having my data truncated after the 86th byte. What's up with that???
Here is the line of code in question:
Printer.print strLine1(1) & Space(ADDRESSLEN - len(strLine1(1))) & strLine2(1) & Space(ADDRESSLEN2 - len(strLine2(1))) & strLine3(1) & Space(ADDRESSLEN2 - len(strLine3(1))) & strLine4(1)
Here is some example data contained in that line if I write it to file instead of the printer...
COLBY B COOMBS CHERYL L PETERSON RICHARD G QUINN ANDREW O PETERSON JR
But what prints is this...
COLBY B COOMBS CHERYL L PETERSON R
Ideas?
Thanks,
Sean
Printer.Print Method
Hi Guys,
I have this problem with the printer object.
hwen VB6 tries to execute this command
Printer.Print Variable1
It gives me an error
Method or Data Member Not found
and in nowhere in the properties and methods of teh printer object is print method found, not even on microsfots MSDN library
But MSDN suggests use of Print method to print documents
Where am I wrong??? If somebody can please helpme
Plz Help Me On Printer.print Method
--help me--help me--help me--help me--help me--help me--help me--help me--
In vb6 how can i print a visual basic form using printer.print method or How i can print a vb form using printing dialog box.
I try printform & printing dialog box but when i choose the printer the printer only set as a default printer. But the change of the printer not effect on printing. if i set the printer ink is low quality but that is not effect on the printing the printer print default settings. Plz send me a sample code how the user printing setting will work on printing visual basic form. Plz Help me.......
--help me--help me--help me--help me--help me--help me--help me--help me--
Plz Help Me On Printer.print Method
--help me--help me--help me--help me--help me--help me--help me--help me--
how can i print a visual basic form using printer.print method or How i can print a vb form using printing dialog box Plz Help me..
--help me--help me--help me--help me--help me--help me--help me--help me--
Printer.print Method Missing...
I'm missing tons of stuff from my VB6 app it seems. I just recovered my Common Dialog control thanks to this forum, now when I summon up Printer, the .Print method does not show up! This hasn't happened to me before.
Is there something I need to load? All the other Printer methods and properties seem to be there.
Thanks!
Ed
Why Isn't The Printer.Print Method Documented In VB6?
Anybody know? It seems to be the only way to print text directly to the printer, yet Printer.Print isn't included in the Printer context menu, it's not in the Object Browser, it's not listed as a valid method, nor is the Printer object in the Applies To list for the Print method. Is there another way you're supposed to print text? Anyone have any insight here?
Thanks,
-JoeyCode
Print Method Of Printer Object
This program are looking after pdf files in a directory. If a pdf file exists, it will find the size in strFormat (A4 or A3). By some other functions if finds the printer device name in strPrinterName.
So the problem is that I have to change the paper size, depending on the size found in strFormat. Look in the example.
This program is runing on a server, so there is no dialog...
Ex.
For i = 0 To Printers.Count - 1
If cSetPrinter.SetPrinterAsDefault(strPrinterName) Then
' This sets the printer as default
If strFormat = "A4" Or strFormat = "a4" Then
Printer.PaperSize = 9
Else
Printer.PaperSize = 8
End If
End if
Next
' Print out the PDF File
r = AcroExchAVDoc.printPages(0, (nMaxPage - 1), 1, 0, 1)
If I go to the Printer Settings and set the Paper size = "Letter Small, ..." ( = 2 !) and If I put the printer on pause..., and execute the program, the document in the printer queue will have the paper size = 2.
Please help...
Print Method Not Found In Printer Object
When execute Printer.Print "aaa" within VB the program run correctly without message error but when go to make .exe file appeared an message error that say print method not found. I have open Object Browser and look into Printer object and not find there "Print" method. What problem exist? Where is the "Print" method?
Thanks
Problems With Printer Object.... No Print Method..
I'm trying to create a printer object, draw text onto it, and print it, but when i declare the printer object and try to add text to it using the print method, the method isn't listed in the dropdown box and complains "object needed" when i run the code. I've cut and pasted my code below.. maybe someone can tell me what I"m doing wrong??
thanks
Dim currentPrinter as Printer
currentPrinter.print "Some Text"
currentPrinter.EndDoc
Urgent Help Needed With Print Method Of Printer Object
This program are looking after pdf files in a directory. If a pdf file exists, it will find the size in strFormat (A4 or A3). By some other functions if finds the printer device name in strPrinterName.
So the problem is that I have to change the paper size, depending on the size found in strFormat. Look in the example.
This program is runing on a server, so there is no dialog...
Ex.
For i = 0 To Printers.Count - 1
If cSetPrinter.SetPrinterAsDefault(strPrinterName) Then
' This sets the printer as default
If strFormat = "A4" Or strFormat = "a4" Then
Printer.PaperSize = 9
Else
Printer.PaperSize = 8
End If
End if
Next
' Print out the PDF File
r = AcroExchAVDoc.printPages(0, (nMaxPage - 1), 1, 0, 1)
If I go to the Printer Settings and set the Paper size = "Letter Small, ..." ( = 2 !) and If I put the printer on pause..., and execute the program, the document in the printer queue will have the paper size = 2.
Please help...
Urgent Help Needed With Print Method Of Printer Object
Hi!
I have to add the printing feature to my application. I want to use the printer object. But for some reason, Print method of printer object does not appear in the list of methods that it displays. And if I type Printer.Print it gives me an error. I see other members of Printer object -currentX, CurrentY etc but not Print. Do I have to include something before using this object. Please help.
Thanks
NC
Print Error 486: Can’t Print Image To This Type Of Printer
Hey all
Has anyone seen this error when trying to initiate printform? I am trying to printform in a loop and it gives me this error. The printall subroutine has my printform code. It works perfectly the first time but when it tries to move to the previous record and then print that one I get this error. I searched for information but only found one suggestion where someone suggested putting a time delay in there. I tried that and it still would not print the second time. Help please.......
Thanks so much
Kim
Here is my code:
Code: Private Sub cmdPrintAllForms_Click()
On Error GoTo SubErr
Dim i As Integer
Dim rs As ADODB.Recordset
Set oConn = New ADODB.Connection
oConn.Open frmSplash.sConn
strSQL = "select * from tblAircraftWO where work_order_no = " & txtWorkOrderNo.Text
Set rs = New ADODB.Recordset
rs.Open strSQL, oConn, adOpenKeyset, adLockOptimistic
i = rs.RecordCount
rs.AbsolutePosition = txtCardNo.Text
Do While Not rs.BOF
PrintAll
rs.MovePrevious
If Not rs.BOF Then
RetrieveRecords
End if
Loop
If rs.BOF Then
rs.MoveFirst
MsgBox "You are at the beginning."
End If
SubExit:
Exit Sub
SubErr:
MsgBox Err.Number & ": " & Err.Description
Resume SubExit
End Sub
Must Close Program To Print Using Printer.print
Hi,
Using VB 5.0 and find that I must close the VB program before the printer will actually print. I'm using printer.print. Do I need some control character at the end? Any ideas?
Thanks,
met12
Guidelines For Form.Print And Printer.Print?
Hi,
Can somebody please provide some guidelines on when and where I can use the Form.Print and Printer.Print codes. I've just spent hours trying to understand what works and what doesn't I've tried to find information in the standard MS manuals and I have searched this site without much success.
Simply, I want to print out the value of some variables at various stages of program execution for debugging purposes. Actually there are many hundreds of values so I don't want to copy them from the screen onto paper manually.
Let's take a simple case
Printer.Print "Hello"
Printer.EndDoc
Seems straightforward and code like this is listed in many sources. It just would not work for me! The code would apparently execute but no printout appeared
This code was included in a Standard (.BAS) Module, but it just would not work.
I tried the same code in a Form subroutine and called it from the Form.Load event, but it still didn't work.
Finally, I called the same routine in the form from a Command Button - it worked - Hooray!
I put the subroutine back into the BAS module and called it from the same Command Button in the form but it no longer worked.
No error messages appeared anywhere
I found the same type of behavior with the Form.Print and associated codes.
Perhaps I'm being very dense here, but is this behaviour expected? If so, how can I print variable values from within .BAS modules?
Thank you to anybody who can shed light on this idiosyncratic behaviour.
Andy T.
System
VB6 SP5
CPU Athlon XP 2800+
Windows XP Home
Brother HL5040 laser printer (default)
Reports To Print. Print Method ?
-Hello Again-
I am just about done my application and one thing that still needs to be done is to be able to print off all transactions (consisting of account balances, the users pin and dates of transactions - to open and print dat files?) through a mnuReports drop-down window i've integrated into the Administrator's menu.I cant seem to be getting it correctly.I admit
that i do not know what to do.
any help would be appreciated.
Print.. Printer.Print ?? Ahh!!! Under Win Nt Server 4.0
Hi...
I have just installed windows nt server v4.0 as well as vb pro 6.0. Trying to use the printer command as follows:
printer.print = "Hello"
printer.EndDoc
This produces the printer icon near the time to appear. The only problem is that the printer does not print anything.. Performed a test print under printers folder in control pannel and it worked, But trying to print in vb will not work.. Tried 2 printers aswell.. Please help
UTF Unicode (Urdu Language Database)
hi
i am new user.
i download urdu keyboard from web. that keyboard name is "Phonatic" for Windows XP. With the help of that keyboad we will type urdu in Word Excel.
i am facing problem,that there is a database in excel (urdu),
i copy data into notepad, and save as Encoding =UTF-8.
then Interst Richtext box in vb6 exe application, load txt file into it. every thing is ok. file open and show all data correctly
then i copy all the data (including urdu fileds) into Access, the urdu filed looks fine in MS Access.
But when i try to read that data through Recordset or processing throgh VB normal string functions i did not get proper results, when ever i try to read the data i find ? ? ? ? instead of data.
Please any one now how to read utf data through recordset or any way to process in vb6.
Regards
Manzer
Print Method Or Print #
Hello, vbcity forum-ers.
I would like to know how to do some things on the printer. Could you answer a couple of questions?
Can I use either the print method or the Print #... statement to print a box? Also, I need to print a box with a check or an 'X' in it. I need to print it on a line next to some text, similar to the what you see here where it says "Email Notification" and about that size.
In using the print method or the Print #... statement to a printer, is there any way to get a print preview?
Thanks.
Robert
Cannot Print With Printer.Print
Hi guys...
My Printer.Print doesn't seemed to work...What is wrong??? In another project file, the same line of code works there...I'm using the same PC for both..
Please help!!
Thanks a lot!
Avoid Printer From Ejecting The Paper After The Last Line Printed? (VB - Printer.print)
how to stop the printer from ejecting the paper after the last line has printed?
assume i'm making an invoice for my small store, and i want to print the items my customer bought downward, so whether it's 1 item, or 5 items, or 100 items, i want the printer stop after the last item has printed ( plus my invoice's footer off course ). i am using VB 6, and 'printer.print' code to print and my printer is EPSON LX-300+. and my database is SQL Server 2000 Developer Edition. is there anyone can help? i really appreciate any help you offer
PS : i've been searching this forum and try all topics related to my issue but nothing's suitable for me...so if there's someone can be more specific, i would really appreciate it
How Can I Change The Default Printer At Runtime To Use It With Printer.print Command?
Hi everyone,
I have a little application which uses printer.print command to do some print jobs, of course there are some other things that I print using Data Reports.
When my application starts, I think it instantiates printer object with the default printer (lx300). Once the application is started, there are some options that use printer.print, but there are options that use printer.print too but I need to print them in another printer (ip1000). I have a common dialog that lets me choose the printer, and when I choose ip1000 every printer.print call goes to lx300. I assume there's no way to "reinstantiate" printer object to print in ip1000.
Also, when I close my application ip1000 becomes my default printer. Does the common dialog can select a printer without changing the Windows default printer like Word, Excel. do?
Thanks a lot for your help
How Can I Change The Default Printer At Runtime To Use It With Printer.print Command?
Hi everyone,
I have a little application which uses printer.print command to do some print jobs, of course there are some other things that I print using Data Reports.
When my application starts, I think it instantiates printer object with the default printer (lx300). Once the application is started, there are some options that use printer.print, but there are options that use printer.print too but I need to print them in another printer (ip1000). I have a common dialog that lets me choose the printer, and when I choose ip1000 every printer.print call goes to lx300. I assume there's no way to "reinstantiate" printer object to print in ip1000.
Also, when I close my application ip1000 becomes my default printer. Does the common dialog can select a printer without changing the Windows default printer like Word, Excel. do?
Thanks a lot for your help
Special Characters Don't Print
In my MS Access db, I had the Greek symbol for DELTA in one of my fields. Δy/Δx
My VB6 project read the record and was supposed to put the data in a picturebox.
When it printed the data it did not show as the Greek letter Delta but rather as a question mark '?'
What printed was ?y/?x
I was using the same font in both.
Any clues?
Print String Of Characters
I forget the string function for printing a line of characters, such as "######" in Visual Basic 6
Could anyone help me out? I'm going to be using it to print spaces
Thanks in advance!
To Print Graphical Characters
hi
i have problem in printing graphical characters such as -(196) , +(192) etc. It prints some junk characters such as ä which doesnot belong to the specific ascii code, anyone can help
Best Method To Print From VB 5.0
What is the suggested best method to print a partial frm table along with some other info such as the name and address. And if the list goes over one page how to handle that?
Thanks,
met12
Print Method
I'm trying to use the .Print method for Printer, but that's not an available option. Is this because my default printer on my laptop is WinFax instead of an actual printer? I only have access to my printer when I'm on my network at home and I'm not at home most of the time I'm coding.
If this isn't the reason, am I supposed to reference some other Microsoft reference file? I'm fairly new to this, so the obvious may be escaping me.
Thanks.
Print Method
I trying to print some fields from a database in my app., but the text continues of the edge of the page. How do I make it start a new line when it reaches the page edge??
Printer.Print Spc(5), rsCM("Setting")
Print Method
Is there a way to truly center text using the print method. The only way I know to do it woul be to use
Printer.CurrentX =
But this only indents it it does not center it.
Also, Some lines are printing off the page. How can I have the text wrap?
Anyone have any reconmendations on getting output to a printer. What I am doing is pulling infomation from a database and sending it to a printer. I would prefer to have everything nicely formatted. I realize this is probally going to be kinda difficult for my skill level but how else am I gonna learn?
Anyone have any sugestions?
Which Print Method To Use With VB 6
I am trying to determine which of these printing methods to use with VB 6:
(1) Printer Object - This requires a lot of work but looks like it can be used with most printers.
(2) Data Reporter - This is part of VB, but it produces a strange file [.TMP].
(3) Crystal Reports - This is the copy that comes with VB [Version 4.6] – I hesitate to use it since this is an old version.
– Could this cause trouble if put on a machine with a newer version?
Print Method
How many types of print method? I wish to print a bus ticket, so how can I print it? How do I retrieve data and display them in a paper in an organised way?
Printer Not Responding To Printer.Print --> Help Newbie
First... I am depressed like hell to get this to work.
Problem: I have an "Eltron 310" ID Card Printer. I am trying to do
Printer.PaintPicture IMG_ID,0,0 (where IMG_ID is a picture)
Printer.EndDoc
The above
--> Works with normal printer
--> Does not work with ID Card Printer. ID Printer doesn't even respond to the command, Printer.PaintPicture, nor does it respond to Printer.Print "some text"
PLEASE HELP. ANY CODE IS GREATLY APPRECIATED.
Thanks
Sreeni
Printer Not Responding To Printer.Print --> Help Newbie
First... I am depressed like hell to get this to work.
Problem: I have an "Eltron 310" ID Card Printer. I am trying to do
Printer.PaintPicture IMG_ID,0,0 (where IMG_ID is a picture)
Printer.EndDoc
The above
--> Works with normal printer
--> Does not work with ID Card Printer. ID Printer doesn't even respond to the command, Printer.PaintPicture, nor does it respond to Printer.Print "some text"
PLEASE HELP. ANY CODE IS GREATLY APPRECIATED.
Thanks
Sreeni
? Printer Should Print Your Current Printer - Correct?
I am right in assuming that if I run a standard .exe program and I pause it...then type in the Immediate window the following:
Code:
? Printer
then it should come up with the default printer name - correct? Please let me know if I'm wrong.
Thanks,
Stephen
Other Method To Print Image????
hi friends
Is there any other methot to print the image displayed in image box,
other then printer.paintpicture.
Becoz it fails for very large image...and print the blank page.
regards
er_vip
A Question About Print Method
Euhmm, here is another lame question. I want that my program writes some lines to a file, and that every line is on a new line.
E.G
open "C:file.txt" for output as #1
print #1, Line1, line2
close#1
this code example is how i use it now, but then it sets line2 after line1 at the same line in the file.txt
Method To Print ASCII
Is there a method in VB to print out the characters for ASCII codes? I could just print them out, but I thought there was a method specifically for converting ASCII codes to their character representation.
|