|
Does anyone know if IE6 supports "proper" pagination? I want to do printouts with IE6, with headers and footers (recurring on each page).
--
Pictures[^] from my Japan trip.
|
|
|
|
|
If by "proper" pagination you mean setting the "page-break-after:always" style works to force a new page, then yes. All you need to worry about are repeating the headers/footers for each page, and keeping everything small enough that it fits.
|
|
|
|
|
When proper I was thinking more along the lines of having IE "shrink" the page and place it between recurring footers and headers. Did that make sense? I really don't want to bother doing manual layout of header and footer, because it's bound to break sooner or later.
My problem is basically this: I write POS software for a living. That's the main problem. Receipts are normally printed on regular POS printers, e.g. 80 mm wide thermal printers. The follow up problem is that I have stubborn customers who really wants to print the receipts on A4 papers (for easier handling they claim). Basically, what they want is a receipt in an invoice-ish layout. So I figured I'd utilize IE for the rendering of such documents, since it comes with the operating system. No need to go through Crystal Reports hassles (which is a real pain in the buttocks, IMO). Does that explanation of how I want the layout make any sense?
I can live without fancy headers and footers, but it would sure give the printed stuff a far more professional look. Right now I'm using the standard headers and footers provided by IE, which can unfortunately only hold simple lines of text (you can see and modify them in the IE page setup page, and/or through a pseudo-undocumented ExecWB-feature).
Pardon my horrible english.. I've been working for 16 hours straight, and I'm about to fall asleep on the keyboard. Really, I mean it.
--
Pictures[^] from my Japan trip.
-- modified at 18:10 Monday 19th December, 2005
|
|
|
|
|
You really don't have much of an option, at least not that i'm aware of. If Things were Right with the World, you could do something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <body> <table style="width:100%;height:100%;margin:0px;border:none;"> <thead> <tr><td> Fancy-pants header</td></tr> </thead> <tbody> <!-- put content here (in <tr><td></td></tr>) --> </tbody> <tfoot> <tr><td> Footer text </td></tr> </tfoot> </table> </body> </html>
And rest assured that the header and footer would repeat on every page, no matter how many pages tbody required.
But things aren't right, and that doesn't work in IE. So you can just add the page break CSS to the table, and make sure the stuff in tbody never takes up too much space, and that the table repeats for every page...
|
|
|
|
|
Thanks for the tip. As contents is of arbitrary size, and how much will fit in the contents area, and the fact that the user is suppose to be able to muck around with the layout, I'll just have to go with the "There won't be any fancy headers, sorry!"-option. They'll just have to live with page breaks. It still beats the look of a receipt, smeared out on an A4...
--
Pictures[^] from my Japan trip.
|
|
|
|
|
Otherwise, come up with an estimate of how long it'll take you to integrate Gecko...
|
|
|
|
|
Please don't put such thoughts into my head. I might actually try it.. *going my 18th hour*
time to pack up and go to sleep.
--
Pictures[^] from my Japan trip.
|
|
|
|
|
Hi,
Quick question. I wrote an application that after you submit a new entry to the database it directs you to a datagrid that shows all the entries made. What I would like to find out is when a new entry is made, is it possible to change the color of the new entry in the datagrid so that you can easily see where the new entries are?
Thanks!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
Hi there,
IMO, You can do that. After the new entry is added, then while you bind the data to the grid, you can change the color of a row by customizing the OnItemDatabound (something like that...) event handler...
<< >>
|
|
|
|
|
I'm using VS2005 final. When I try to create a new Web Control Library project with VS2005 in C#, I could not find Web Control Library template. Any one has the same problem? If yes then what is a solution.
Regards.
|
|
|
|
|
In the Add New Project window, select the language, then the Windows subitem, then you will see the Web Control Library template in the right pane.
|
|
|
|
|
Hi..i'm doing a web design using C# web application.. Actually, there's two part which i not too sure about the coding..
1) Is that when i add the data, press save then it will link to a confirm page.. And from there, i can choose to continue to add the data or delete the data and exit to the menu. This is the part i not too sure how can i delete the data..
2) The user add his data, press save, everything is stored in the database and then he can delete this from the datagrid table.. From the datagrid table, i have goes to the property bulider --> columns --> button column
--> select, edit, update, delete and all my datafields.. But now how can i delete or edit the user(s)
Thanks for the help.. =) Can anyhow help me how to code it or who has done it give me example of it ?? Thanks!!
Cheers!!
|
|
|
|
|
1. As the data is not saved, you don't have to delete it. Just go to the meny and the data is gone.
2. The same way, but with the user table.
---
b { font-weight: normal; }
|
|
|
|
|
Hi..If i save the data, how am i going to delete it?? I mean how to delete from the datagrid table??
Thanks
|
|
|
|
|
momoo wrote: I mean how to delete from the datagrid table??
The easy way, IMO, after deleted the entry, just re-bind the data to the grid...
<< >>
|
|
|
|
|
save the data temporatily in a Session variable ~ go to confirm page ~ In confirm page to add , retrieve data from session and save it into database ~ to delete , just remove the session variable using Session.Remove
|
|
|
|
|
hi to all,
i am trying to create a website that is catalogue to order from.
i have alot of products from the database, so i get these products into a DataTable then i loop the table and generate the pictures and information into HTML (no problem here)
when i create the link to the products i am doing this.
string productHref = Server.UrlPathEncode(
"?code=" + productCode + "&" +
"qty=" + qty + "&" +
"price=" + price + "&" +
"url=" + Request.Url.ToString() + "/#" + productCode + "&" +
"image_url=" + productPictureLink);
then i use this in codebehind when looping the table
sb.Append(" < a name=\"" + productCode + "\" class=\"greenType\" href=\"" + productHref + "\" >Add to Cart< /a >" + newline);
now is the problem.
the first time i add to cart, all is well, but after that the querystring has 2 lots of the productHref in it, so the NameValueCollection has two entries in it from the QueryString.
1st add to cart
http:
code=product_x&
qty=1&
price=151&
url=http:
image_url=main/clothing/mens/tshirts/TShirt.jpg
2nd and thereafter add to cart
http:
code=product_x&
qty=1&
price=151&
url=http:
image_url=main/clothing/mens/tshirts/TShirt.jpg
how do i overcome this problem please?
it appears i need to strip out the QueryString before returning the page, is this possible?
obviously iof i dont store a link to the url of the product in the cart, then i will have no problems. it would be nice to be able to click back to a product from the checkout page though.
i can do some string manip on the querystring, is this the only way to do it?
kind regards,
g00fy
|
|
|
|
|
Hi
Is there a way to restart a single Web Service without restarting the whole IIS ?
At the moment the way this is done by manualy killing the process aspnet_wp.exe.
By killing aspnet_wp.exe <all> the webservices are restarted, is there are way to restart a single webservice even if there are other web services running under the same aspnet_wp.exe ?
How do I run a webservice under it own aspnet_wp.exe ?
Thanks
Gilad.
|
|
|
|
|
Why do you want to restart it? If you don't want to restart the process, what is it that you want to restart, really?
GiladKapel wrote: How do I run a webservice under it own aspnet_wp.exe ?
That depends a bit on what version of IIS you are using. Basically, though, you just set the application to run as an isolated process, e.g. setting the application protection level to the highest setting.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: Why do you want to restart it? If you don't want to restart the process, what is it that you want to restart, really?
Other than the web service I'm also running a "Watch Dog" service that monitors the web service and restarts it if the web service failes to replay\function for any unknown reason. I need the watch dog service to progrematicly restart the service. The watch dog is a very simple app and its chances of failing are very low.
Gilad.
|
|
|
|
|
Hi
I notice that there is a long delay on the first call to my web service (loading the web service and all its dll components). Is there a way bypass this delay by "manualy" calling the webservice after the IIS is restarted (gatthering all the "garbage time" to one place) ?
Thanks.
Gilad.
|
|
|
|
|
Hi to all!
I have download a ASP script called "A versatile html form mail script for classic ASP at 18 Nov 2003" of Nathan Ridley, but i can't contact him. because when i submit the form, its giving following error "HTTP 500 internal server error" and it doesn't send the email.
can any one tell me why it is happening? any clue or suggesstion are welcome. the server is windows and already many ASP script file are running on it.
url is:
"http://www.alsoc.org/alsoc/sendmail/sampleform.htm"
kindly help me
thanks in advance.
|
|
|
|
|
Hi there,
IMO, You might try to debug to find out which line of the code causes the error...
<< >>
|
|
|
|
|
Thanks!
Sorry, I don't have debugger installed my machine. can debug it on the web.?
which type of debugger i should use. i have WinXP installed.
i have putted the link, if you want i can put the code also. please suggest.
sujata.
|
|
|
|
|
just using response.write() method to write the info to the webpage....
<< >>
|
|
|
|