I'm on a project for a government application. For a given domain object, there is a report that is pre-generated, converted to PDF, and stored in the database.
The client wants to have a list of these domain objects, each one with a print icon at the end (which is already done).
The problem is when they click on the print icon, a postback is acceptable, but basically they want to hit the database, download the PDF, stream it to the browser, and print it, all without any pop-ups.
In short, other than the blink of a page for a post-back, they want Win App functionality of clicking print, and a PDF printing without any other interaction (downloading the PDF, file-> print, etc).
Since its a PDF, I know this isn't possible with Javascript. I have no experience with ActiveX whatsoever, so I was hoping for advice on whether this was completely impossible, and the level of effort involved.
I think its impossible, but I want to at least say I've done my homework before I tell the consultant that who thinks it can be done.
i make a data display page, its showing all records, now i want user just press print button, and that print all data on screen, secondly user input 2 dats From ..... To......, so data in between that day will print,
so it opens up a new page i want to set properties of the page like we do for pop up window.like i want the new page to be of a specific size with no scroll bars and stuff i have the code for opening a pop up window in javascript
in my database customer name is mike o'lee, i am creating one reason forum by using asp script and call customer name from database by using link syntax. when i trying to open the reason forum it displaying the error message like page is not found.
The problem is in single quotation which is present in customer name.I now how to remove the single quotation ,but use want to see the same customer name. how i can open the page,by using same page.
I just made a simple web site using Frontpage 2003 with a simple MS Accesss database.
IF I try to open the asp page in a browser by typing http://localhost/mysite/db.asp it opens just fine
However if I try to opeb it by typing c:/mysite/db.asp I get the following error message:
The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.
I have a server with a Word document and an Access database on it. I also have an ASP page running on the server. The Word document contains a mail merge with the Access database. What I want to do is open the merged Word document from the ASP page when a button is clicked.
I have tried several things including some scripting that I found on the internet. This scripting works, however it opens the merged document on the server instead of on the user's local machine. I want the Word document to open on the local machine instead.
I have one combo box and GO button on the click of GO button page submitted and according to selection of one of the option from combo I want to redirect my page to some new asp page but at the same time in new window of browser.
I could have achieved this using window.open() of javascript but then it will serve as pop up and clients requirement is that not to show as popup window due to many users blocked popups.
Any suggestions, How can I achieve this using response.redirect or any coding which is not serve as popup window.
(incidentally, the more i look at it, the more i feel i should point out that to be totally sure your SQL statement is correct you should write it like:
INSERT INTO table_name (column1, column2,...) VALUES (value1, value2,....) so that you know your info is going to the right column on the table
I have a form that assigns to 2 variables. Now I want to have a button that if clicked sends a different asp page the 2 variables and runs the page. I think I need the new asp page to open in its own window as I want the original form to stay open in the background and the new form generates an Excel file to download rather than opening in the browser.
Could I get an example, preferably in vbscript, of how to do this please? The only sample code I've found so far uses a hyperlink instead of a button and doesn't pass any arguements to the new page.
There's an access database on an iisserver and asp makes updates to it. The database got moved to a newer server. The users used to be able to open the database and use the asp pages at the same time. Now when the database is open the asp pages won't update.
My newly rented 2003 Standard Edition dedicated server allows me to access HTML or picture files but asks for username and password when I try and open an a asp page. I have set Authenticated User permissions to Read & Execute and Directory properties to Scripts & Executables. What have I missed?
If I put a link on my webpage that says click here to print page. How can I get the print code to specifically print only the information between a specific <TD></TD> tags? See cause if I just let it print the whole page it is all messed up cause it is too big to print on one page.
My other concern is that I want to print a ASP web page which takes some parameters from the current page. How can I print that page directly without opening it
If i make a table using a query on a web page.How can i make that web page print to the printer without having to make the user click on file print etc?Is there a way to do this?
I write a page in HTML ,user can print it I want to fix page size in print page set up to (legal) that doesn't need user every time change option how I can do this.
I have a list that has two pages or more. How to print all the pages clicking a print button? Right now, it just prints the screen using the following.
The requirement is, I need to print a disclaimer text, it contains some chinese characters also. This text is like copy right information. This text needs to be always come at the foot of the page.
The report can be in html/pdf/rtf format.
When I try with pdf/rtf by setting the text in footer. I am struking with chinese characters.
i wanted to have a [ print this (friendly version) ] page that would display the content separately and then the user could print the page using the above script.
I have a pretty complicated site written in ASP (it's not live yet, so I really do not want to post a url). On one of my pages, I have a header, the top area, and then the middle area which changes when I click on different links, but the url remains the same.
I need to figure out how to print the middle area. When I just do a print page, it doesn't come out formatted correctly at all. I've been playing around with printing/converting to PDF, which works well, except that most pdf components expect a URL to print, and in this case my url is generic..it doesn't point to a specific page.
I display an HTML Report on the screen and have a print button on the page. The print button uses the following JavaScript code.
onClick="window.print()"
Works great except it displayed the print dialog box and the user must hit the print button on the diaglog box to print the report. Is there any way to print the Web Page directly without displaying the Print Dialog Box?
Is it possible to prompt the user to print an asp page? For example, in this instance, I have created a job logging and monitoring system. At the completion of the job, I would like the user to be prompted if they want to print the job. If they say yes then the page is printed.
While not rs.eof <td><%=rs("InvoiceNo")%></td> <td><%=rs("Name")%></td> <td><a href="InvoicePrint.asp?WInv=<%=rs("InvoiceNo")%>"></a></td> <td>Print this invoice</td> rs.MoveNext Wend
Now user needs to click the link to open the invoice, and then select File--Print from the menu to print it out, and then return back to print another. As the table is very long, they need to scroll again to find the next one.
I want to make the user more comfortable, that they simply click the "Print" button in the end of the row, without opening the page, print the invoice no they want. Is it possible?
Is it possible to print multiple records wherein there should be 3 records per page.Once the supervisor logged-in, there's a link where he can print all the records of his subordinates. Currently I have a print.asp file which gets all the data and arranged in aparticular format.
I've created a tabular form(interface) with proper arrangement of data. How can I set such condition, wherein there's only 1 form, but it should be printed on the paper depends on the # of records (3 tabular form per page, where 3 tabular form = 3 records of different people)? Is it possible? Do I have to make 3 tabular forms? If I'm going to do this how will I select or use the recordset?
I have an ASP page with a header (title) and a long image. I get the image name from the database and write out the image's "src" attribute using response.write. Easy stuff. But when I print the page using Internet Explorer, the header prints on the first page, but the image shows up on the second page. (the image is too large to print on one page) Is there any way to force the image to start printing right underneath the header and not go to the second page? I've looked into CSS to see if I can force this somehow. No luck. If I make the image smaller, it prints on first page. But I don't want to do that.
I want to print a complete asp page without using Javascript command window.print(). I want to print current web page in backgroud withot displaying printer dialog. Can you give me some information.
I have an ASP page, whisch generates dynamic report for a SQL server DB. Now the users want to have the content in PDF format (not HTML page). The server machine had "adobe acrobat destiller" installed.
How can I print the content of this ASP page to acrobat PDF destiller and send PDF file to browser?
I have an asp.net page that I would like to open up another asp.net page within the first one. Like a parent - child relationship. I need to display a graph in the child on the parent.
how to print the content of a multiline textbox without taking the content to some other "printer friendly" page. I just wanna send whatevers in the textbox directly to the printer.
I can run these commands successfully from the command-prompt on the server but from an ASP page, I get nothing not even an error. The Text output for NET PRINT is a blank text file.
I feel something is different on the permissions side because this code/approach use to work fine.