|
I need a source code to print a table [or database table] in dot matrix mode using .net.
I want to print the table in this form
Header
-----------------------------------------------------------------------------
S.No. Name Address Telephone Xyz
-----------------------------------------------------------------------------
1 | xyz | djfhjksdhf |94875893475 |89475895
2 | abc | gfhjhjhjhj |94875893475 |89475895
3 | adad | uhy56fbvbn |94875893475 |89475895
4 | afg | nhgnhnhn h |94875893475 |89475895
please help me.its urgent
Thankq
|
|
|
|
|
Dot matrix mode? Do you mean you want to print a table, with all those text neatly aligned?
You'll need a fixed-sized font for doing that. Try a textbox and set the Font to "Courier New".
|
|
|
|
|
thanq for u r rply.
I too dont know the exact format of dot matrix mode or dot matrix print.
all that i want to print the table in this format.
Header
-----------------------------------------------------------------------------
S.No. Name Address Telephone
-----------------------------------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjksdhf |94875893475
3 | efg | djfhjksdhf |94875893475
4 | 123 | djfhjksdhf |94875893475
Thanq
modified on Wednesday, October 22, 2008 3:43 AM
|
|
|
|
|
Like this?
---------------------------------------------------
S.No. Name Address Telephone
---------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjk |12345678905
3 | efg | djhf |94875893475
4 | 123 | djfhjksdhwfsdf |23456789005
If you simply want the table printed (in the format you typed), then use a fixed-size font. The type of printer doesn't matter in that case.
There is no "dot matrix" format. It's a printer from the past. I guess that you just want to print plain text, in a table-layout.
|
|
|
|
|
exactly i want in that format only.what exactly u mean to say fixed size font.
and is the print code same for both dot matrix printer and normal printer.
to get those dotted line i have to set any option or can i get those dotted lines for normal printer also.
thnq
|
|
|
|
|
This is your table in a variable-width font:
---------------------------------------------------
S.No. Name Address Telephone
---------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjk |12345678905
3 | efg | djhf |94875893475
4 | 123 | djfhjksdhwfsdf |23456789005
This is your table in a fixed-size font:
---------------------------------------------------
S.No. Name Address Telephone
---------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjk |12345678905
3 | efg | djhf |94875893475
4 | 123 | djfhjksdhwfsdf |23456789005
In a fixed-size font, all the characters have the same width. That has the advantage that all the texts are nicely aligned.
sravanthi.M wrote: and is the print code same for both dot matrix printer and normal printer.
Yup. One just "prints", and the printer-driver for Windows does the rest. It won't matter for your program what kind of printer is attached.
sravanthi.M wrote: to get those dotted line i have to set any option or can i get those dotted lines for normal printer also.
Those dotted lines only appear on vertical lines on a Matrix-printer, and they'll only be visible on matrix printers with 9 needles; those with 24 needles give the illusion of a 'real' line.
If you really, really need to have it look like it has been printed on an ancient machine, then by all means, go out and buy a cheap matrix printer. In all cases, try to avoid the dotted lines whenever possible. It looks dirt-cheap and it would be expensive to emulate on a laser-printer.
|
|
|
|
|
thanq very much 4 ur rply.
Actually i have a table with solid lines and i want that table to print in that format[with dotted lines as i posted previoulsy].using normal printer.
thnq
|
|
|
|
|
That's going to be hard to emulate. Your best bet would be to draw your information to a bitmap (Image). I'm not going into detail as that would consume too much time, but in general;
You can use the .DrawText() method to draw your text. Once that works, you can add the horizontal lines. These should not be dotted, if the result should look like it's been printed on a Matrix-printer. The horizontal lines should consist of either 9 or 24 dots. I guess that you'll need the 9-point version.
I do think that this solution is uncalled for, and it will get you into more trouble than it's worth.
|
|
|
|
|
ok..
thx alot for u r replies.it helped me alot.
|
|
|
|
|
sravanthi.M wrote: and is the print code same for both dot matrix printer and normal printer.
The answer is yes and no.
Yes: If you are just issuing a "print" command from anything above a semi-intelligent terminal (a PC, for example), then the entire operation would be taken care by a printer driver. There will be no difference in this case.
No: If your code is going to run on a semi-intelligent or a dumb terminal, then there may be no 'broker' between your code and the actual device to shield you from the boiler-plate stuff. You will then have write code to incorporate the appropriate ESC sequences[^] of the printer attached. As you are talking about dot matrix printers, generally they must fully comply with the EPSON escape sequences (the standard). Mind you that these sequences may differ from one printer to another, depending on what kind of printer is it (thermal, dot matrix, laser, etc.,). So, you will have a separate "print" function for every type of printer that the program may have to work with.
If your program will be running in a dumb to semi-intelligent terminal AND has to work with multiple printers, then it may not be a very pleasant experience to write the code for it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
You are welcome.
May I kindly ask you to avoid using SMS language (like PLZ, THX, U, R). It irritates a majority of the grown-ups. I will excuse your brevity if you had posted this from a handphone.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
ok sorry for your INCONVENIENCE.
Thank you
|
|
|
|
|
sravanthi.M wrote: u r rply
"you are Ripley"?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
How can the signal strength, MAC address and related information be obtained? (both connected and NON-connected APs)
I tried to use WMI, but it always returned garbage MAC addresses.
Please help!
Thanks!
|
|
|
|
|
Have you looked into any WinAPI that allow you to communicate with the command line (cmd.exe)? Their has to be a way to harnass the ipconfig information through WinAPI.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I have a working C# program. It's a gui that lets me access my parallel port. I would like to be able to convert it into a web page now. I've tried the copy past and start debugging approach. I think it's over my head.
I would like to know where to go or who to contact to have a pro work on it. I am willing to pay a programmer for a few hours of thier time. I will provide my working program and I can pay with paypal. Can someone please advise.
|
|
|
|
|
|
I was tempted to do that but he may actually want quality work done. I agree that here is definately not the place for the storm this will bring.
How is he going to assess the quality of the coder?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Please don't cross post.
-
First you might find out if it's a simple or hard task.
Is it the parallel port on the server computer or the client computer that you want to access?
Despite everything, the person most likely to be fooling you next is yourself.
modified on Wednesday, October 22, 2008 2:22 AM
|
|
|
|
|
it's the parallel port on the server that I want users to be able to access.
|
|
|
|
|
Can any one clue me in on what to push in the search engine
so I can read the directories and file names from a open server
I want to be able to auto select what files to download instead of hand picking... (lol I can do that with flashget hand pick)
I have tried a few example for just a look around but they where not even close to getting of the start line...
Thanks for any words to search for... I like to read all about what ever once I get a good hit..
Thanks
Oh by the way I'm using VS 2008 C#
|
|
|
|
|
Normally you can't. Directory browsing is turned off by default, so the only sites that you could get that information from would be the ones where someone have chosen to expose this information.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
the server I'm looking is open for viewing
besides even if they do the blocks you can get the file if you know the directory and name .. I do it all the time.. right now I'm scanning the folder by using coded numbers..
the question was how to do it
NOT why not to do it...
|
|
|
|
|
CDBob2002 wrote: right now I'm scanning the folder by using coded numbers..
If you're talking about a "dictionary" style, where you try to download files from the server, guessing at filenames, this isn't an OPEN server and there is no way to get the directory contents from such a configured box. You've found the only method that's going to work, and it'll only work so long as the owners of the box don't notice you're blindly trying to download files. Once they figure it out, you'll be blocked from doing so.
|
|
|
|