jamello 158 Posting Whiz in Training

Hi there folks! Please could anyone tell me how I can disable the underline of a hyperlink button server control of datagrid and similar controls ? I had used the following css code on the ItemStyle-CssClass which works for traditional hyperlinks to no avail. Thanks for the help:)

.tablecellhyperlinks
{
text-decoration: none;
DISPLAY: block;
}
ItemStyle-CssClass="tablecellhyperlinks"
jamello 158 Posting Whiz in Training

Yes! both approaches worked! thanks:lol:

jamello 158 Posting Whiz in Training

Yes my dear, You bet!
You know, it is an assumption that carried about by MEN that they are smarter than women and carry it to the work place. I am not from that school of thought. In fact I do not know whether you know of a joke that basically tells about human brains for sale for replacement surgery where the brain of a female homosapien is cheaper than that of the male. On enquiry as to the reason, the autioneer declared that men's brain are unsed!
:mrgreen:

>I would really like to see more ladies in this business! I am male!
I'm sure that's a completely selfless desire. ;)

It's amusing to watch how women are treated in the field. In my case, it's always assumed that I'm lacking in knowledge or experience. This is odd to me because the jobs I apply for are senior and very difficult. The guys try to mentor me before realizing that I'm pretty far beyond them in ability. I'm left alone while they recover their egos. Finally, I end up becoming "one of the guys" when they get over it and see me as a skilled programmer rather than just a female programmer.

jamello 158 Posting Whiz in Training

thank you very much. I'll try it in a moment, You are the champ!
:D

jamello 158 Posting Whiz in Training

Hi there folks! Please could anyone tell me how I can display a hyperlink without its customary underline? It must be pretty simple but I could not get a hang of it.

Thanks for the help!:cheesy:

jamello 158 Posting Whiz in Training

Thanks once again midiMagic!
Yes indeed the printer is a line printer. Yes the printer was properly installed on the system with its driver and all. Like I pointed out, the documentation is sparse and some what grey in some aspects.

Below is an example of what is required to be done for me to print a line(s) of data.


1. Send an ESC @ command to initialize the printer.
2. Select the font.
3. Set any supporting features for the font.
4. Send the print data for one line.
5. End the line of data with a CR LF (carriage return, line feed).
6. Repeat steps 2 through 5 for each line on the page.
7. End the printing with an FF command (form feed).

For item 2 and 3, the document provides for what codes to send for choosing the fonts.
All the commands mentioned above have their hexadecimal equivalents.

So I hope my challenge is seen in a better light. When these commands are "sent" to the port, the printer does not respond as desired. Or is my "sending" mechanism/understanding not correct?

Thanks once again for your concern!
Hope to hear from you soon.

jamello 158 Posting Whiz in Training

It's understandable that men are more from the statistics shown. I would really like to see more ladies in this business! I am male!

jamello 158 Posting Whiz in Training

Thanks alot for your response, midiMagic.
I am trying to program a particular brand of ticket printer. The documentation is sparse. They have a template manager where tickets are designed and then outputed to the port.
Unfortunately this template manager is not available. but a similar documentatiion is. Here special commands like LF, CR etc are said to be dumped with the data onto the printer ports. My understanding is that the printer is able to stripout the data from the commands.

Since the printer is not behaving as expected, My question now is -does "copy prncmd lpt1" rightly constitute dumping data to a port? This is because from the documentation is shows that when these commands are dumped to the port it is supposed to work!
What I am having now is the printing of both command and text.

I would be glad for any other insight(s)
CF is a typho! sorry about that!!

jamello 158 Posting Whiz in Training

This has been solved. I used windows script host and the filesystem object on the server side thanks

jamello 158 Posting Whiz in Training

please, how do you dump pirnter commands Like

LF, CF, CR

with font commands etc to a printer port for the pirnter to obey? I had thought that when these commands are mixed with data in a text format and copied to a port eg.

"copy prncmd lpt1"

on the command prompt the printer would be able to strip out the commands from plain printable text (I hope I am not sounding naive!).
What I am getting is the whole commands being printed with the data part. Pleaase help!

jamello 158 Posting Whiz in Training

Y'know you are right! I was looking at a sample code in a particular tutoial and was not looking close enough. I tired those same codes as a server side script and it responded without errors. Though the response is not yet want I want but at least I have some light. I am still working on it and I am sure it would be solved. thanks. Do yuou know of any web site I can have a complete tutorial on windows script host? Thanks

Do you really think VB script in a browser is going to be allowed unrestricted access to the FileSystemObject? Or any kind of file/network interface access for that matter.

That might work as a desktop VBScript application; but I'm sure even I.E would notice you're trying to do something potentially dangerous if you put that on a webpage.

I know you're just trying to print and it seems quite harmless, but if IE allowed you, as a web developer, to have access to a user's filesystem or the windows script host, it wouldn't be able to reliably stop you doing what you pleased with either of them. Because of that, you'll likely find that attempting to access either of them on any level is made illegal.

jamello 158 Posting Whiz in Training

p

jamello 158 Posting Whiz in Training

:confused: I have a challenge. I want to print some text based data on the client client side based on some input. I am to associate the client printer as a dos device ie LPT2 using window script host technologies but cannot just make it work. What am I doing wrong? Pls help! below is the example of what I want to do. If this can work I can implement for required scenarios.:confused: :confused: :confused:

<script language="VBScript">
sub doInitialise()
dim objPrinter, objFS, objWSHNet
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objWSHNet = CreateObject("WScript.Network")


// ' Connect to Network Printer from Windows Script Host
objWSHNet.AddPrinterConnection "LPT2", "\\TESTBENCH\TicketPr"

// ' Open Print device as a file using the File System Object
Set objPrinter = objFS.CreateTextFile("LPT2:", True)
// ' Send text to print device using the File System Object
// '
objPrinter.Write("This is a test print to the ticket printer.")

objWSHNet.RemovePrinterConnection "LPT2:"
set objWSHNet = nothing
end sub

jamello 158 Posting Whiz in Training

how do I send a text file to a printer connected to the client's computer.

I have a vb.net app. running currently with internet explorer only browsers. I constructed some texts based on the inputs from the user and need to (a) save it on the client file system (b) send the saved file to the printer attached to the client system for printing.

The Security implication is understandable and could be relaxed without fear or threat. if cookies could solve this problem, I cannot successfully implement this with it (cookies).

Here is the whole scenario, (if you wish), I am working with specialized terminals running on windows XP embedded. I have been able to port my app on the server runing on IIS v5 and the terminals can navigate to it successfully. The challenge here to accept input from users, construct this input into a text file save it on the file system on the terminals and then send this file to the specialized printer located and connected to the terminal. Suggestions would be highly appreciated. It would be LIFE SAVING!!!

jamello 158 Posting Whiz in Training

I have a vb.net app. running currently with internet explorer only browsers. I constructed some texts based on the inputs from the user and need to (a) save it on the client file system (b) send the saved file to the printer attached to the client system for printing.

The Security implication is understandable and could be relaxed without fear or threat. if cookies could solve this problem, I cannot successfully implement this with it (cookies).

In detail, (if you wish), I am working with specialized terminals running on windows XP embedded. I have been able to port my app on the server runing on IIS v5 and the terminals can navigate to it successfully. The challenge here to accept input from users, construct this input into a text file save it on the file system on the terminals and then send this file to the specialized printer located and connected to the terminal. Suggestions would be highly appreciated. It would be LIFE SAVING!!!

jamello 158 Posting Whiz in Training

I would like a table cell to act as my hyperlink. What I have currently is a hyperlink embedded in a table cell, hence it is only when the exact underlined hyperlink text is clicked that the url is obeyed. But not when you click anywhere else. [e.g <tr><td><a href=www.meme.com>clickMe </a></td></tr>]
In the example, the url only works where I click on "Click Me" and not anywhere on the table cell. Please, a helping hand is needed.

jamello 158 Posting Whiz in Training

Please HELP MEEEEE! I am at my wits end! I could easily dump data (usually text data) unto a printer connected to an LPT port using the following command - "print /d:LPT1: E:\tickleme.txt" but I cannot seem to do same to a printer connected to a USB (virtual port). What command do I use. How do I indicate the port in the command line. For instance in the above example, the printer port is given as LPT1 so how do I refer to a usb port. Its not just working. I have tried every thing I know. I need this help terribly and ASAP

jamello 158 Posting Whiz in Training

hello there! my name is jamello, I have been using windows (and doors too!) all my life. It has really made my life alot easier. I am really glad to meet like minded guys (geeks!) like you!
:eek:

jamello 158 Posting Whiz in Training

I am at my wits end! I could easily dump data (usually text data) unto a printer connected to an LPT port using the following command - "print /d:LPT1: E:\tickleme.txt" but I cannot seem to do same to printer connected to a USB (virtual port). Please I need this help terribly and ASAP