473,387 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

printing spansih characters

Hello Everyone,

I have to get a string from the database and print it directly to the
printer wihout a print confirmation box. How can I do this in C# windows
application.

Thanks.
Oct 28 '07 #1
4 1187
(if getting data from the database is an issue, you'd need to be a bit
more specific about your setup, as there dozens of ways to do this...)

Marc

Oct 28 '07 #2
Hi Marc,

Thanks for your response. I created a table and I have spansih data in that
table. In ASP.net site, I will get the spanish data string in executeScalar
because that's the only string present in the table. Once I have the string
in string type varaible, I want that string to be printed directly to the
database right after I read the string from the database.

Thanks

"Marc Gravell" wrote:
(if getting data from the database is an issue, you'd need to be a bit
more specific about your setup, as there dozens of ways to do this...)

Marc

Oct 29 '07 #3
In ASP.net site...
Please can you clarify where exactly you want this text to be printed?
Your original question related to a "c# windows application" -
however, this will work /completely/ differently to ASP.NET
Once I have the string in string type varaible, I want that string to be printed directly to the
database right after I read the string from the database.
By this, do you mean at the server? Or back at the client (in which
case it can't be "right after")...

If you mean you want the user's browser to silently print a page, then
you can't really do this under the HTML model [nothing to do
with .NET] unless you cheat and use a control of some kind. The best
you can do is bring up the print dialog, by calling window.Print() (in
javascript) at the client.

Marc

Oct 30 '07 #4
Hi Marc,
I can print the string directly to the prnter. Thanks for your help.


"Marc Gravell" wrote:
In ASP.net site...
Please can you clarify where exactly you want this text to be printed?
Your original question related to a "c# windows application" -
however, this will work /completely/ differently to ASP.NET
Once I have the string in string type varaible, I want that string to be printed directly to the
database right after I read the string from the database.
By this, do you mean at the server? Or back at the client (in which
case it can't be "right after")...

If you mean you want the user's browser to silently print a page, then
you can't really do this under the HTML model [nothing to do
with .NET] unless you cheat and use a control of some kind. The best
you can do is bring up the print dialog, by calling window.Print() (in
javascript) at the client.

Marc

Oct 31 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Marian Aldenhövel | last post by:
Hi, I am very new to Python and have run into the following problem. If I do something like dir = os.listdir(somepath) for d in dir: print d The program fails for filenames that contain...
1
by: Ralph Noble | last post by:
Folks ... I have a pipe-delimited ASCII text file with a lot of different non-printing characters. Rather than try and figure out all the non-printing characters that exist in this 17+ million...
14
by: Steven T. Hatton | last post by:
I'm trying to write a program like hexel. I guess I could fish out the source for hexel and look at that, but for now I'm trying to figure out how I can do with with std::stringstream and...
5
by: Kit | last post by:
Hey there, and thanks for reading a newbie post. I have a lex assignment in which we are supposed to grab strings from a C source file, and print them out to the screen, with escaped characters...
7
by: teachtiro | last post by:
Hi, 'C' says \ is the escape character to be used when characters are to be interpreted in an uncommon sense, e.g. \t usage in printf(), but for printing % through printf(), i have read that %%...
11
by: jt | last post by:
Here is my code below, it doesn't printf. But I step it thru using the for statement and use putchar to the display, its there... How can I get it to use printf? If the problem is needing a null...
5
by: Patrick De Ridder | last post by:
How can I turn what I want to print 90 degrees using the logic below? Please tell me the code with which to make the modification. Many thanks, Patrick. using System.ComponentModel; using...
0
by: Nigel | last post by:
I successfully create a .NET Component (Visual Basic .NET) that would print, unfortunately when used within a web browser it appears that .NET security doesn't allow you to run code that interacts...
6
by: sathyashrayan | last post by:
Dear group, Following is a exercise from a book called "Oreilly's practical C programming". I just wanted to do a couple of C programming exercise. I do have K and R book, but let me try some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.