Print Document Located In Directory
i want to create one application which is when user click on a button, a document that located in the folder in my computer will be printed automatically. The location of the document will be hardcoded.
Also, i need to specify the url or path of the printer so that when user click on the button, the document will be printed automatically through the specific printer. How can i do this?is there any example of application or source code like this for me to see for guideline?
View Replies
ADVERTISEMENT
i would like to be able to print a txt/.doc file from the client end. the file is located on my server. Since there are multiple files (invoices)..i dont want the client to open each on individually and print them.. Is there any way of printing them. even if i can print one of them, i can print the rest by putting them in a loop, since they are named apporpriately.
View Replies
View Related
is there a way in asp that you can prepend a file to the beginning of page you access in a directory? i'm not talking about the include statement because you have to put it in on everypage manually. i know you can do this in cold fusion, but i don't know how to do it in asp or if its even possible.
View Replies
View Related
I want to download or save a file from remote location to my local computer everyday. for example. i have an excel file . so i need to write a script to download this file automatically everyday. How do i do this.
View Replies
View Related
Will IIS6.0 recognize a global.asa file located in a subdirectory on the webserver?
I'd like a file that will execute whenever a file in the subdirectory is browsed - or, at least it is executed the first time a file in the subdirectory is browsed.
View Replies
View Related
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,
View Replies
View Related
No error or any feedback that I can work with.
Code:
set objShell = Server.CreateObject("WScript.Shell")
objShell.Run "%comspec% /c NET PRINT GarchiveISLaser[color=blue]
>c:WUTempPrinter_Status1.txt", 0, True[/color]
objShell.Run "%comspec% /c PRINT /d:GarchiveISLaser c:WUTemp est.txt",
0, True
Set objShell = nothing
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.
View Replies
View Related
When I use self.print the browser launches the print prompt, then I have to manually press print... DOes anyone know how to get around this.
View Replies
View Related
I have written a script to update user information in the Active Directory using ADSI. Here is part of it:
Set User = GetObject("LDAP://<GUID=" & GUID & ">")
User.Department = DepartmentName
User.SetInfo
Set User = Nothing
This works fine unless DepartmentName is an empty string ("").
Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber
.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?
View Replies
View Related
First of all, yes we are still using classic ASP, lol. I have a XSL
document that is reading in info from a XML file. I have to display
serveral server side dates on the page. Is there anyway to use ASP
code inside a XSL document.
I have tried the following.
<![CDATA[ <%=Date()%]]>
This does not work. In the view source the < and get changed to
&ls; and >. Is this possible? Is there any other way to read a
server side date from this xsl page? If not I will have to re design
the hole page.
View Replies
View Related
I have ASP statements stored in SQL and want to run them on an ASP page. I am printing the data onto the page using ASP, but the ASP code that comes from SQL just appears as actual text. For example, it appears as:
<a href="<%request.redirect("http://www.yahoo.com")%>">Yahoo</a> Rocks
instead of just the link: Yahoo Rocks
Any idea of how to run the ASP scripts from SQL, yet still print out the text around it plainly?
View Replies
View Related
I am developing an Intranet application for a business. I would like to be
able to print out certain bits of information just as regular applications
do. I realize that this is a little more difficult, and after doing
research it seems that the best way to print is to use JavaScript's
"window.print();" command.
The only problem I have with this is that
#1 - it prints the address and date at the bottom of the page
#2 - it prints the page numbers at the top of the page.
Is there any way around this (without having to alter IE's configuration)?
Or perhaps do I need to approach printing in another way? Perhaps VBScript?
View Replies
View Related
Is it possible to query the database using an ASP doc, then write the data to an XML document? The XML document is then going to pass the data as variables into a flash mx file, but the issue right now is just how to write to XML from an asp doc
View Replies
View Related
Is there such a thing as putting some code on a page that makes it so noone could print out that page? Maybe something that disables the browsers print function or something?
View Replies
View Related
Is it possible to get the current document name (file name only) in ASP? When I load a document, i.e. /a/b/default.asp, I would like to be able to get the name of the document I'm currently loading (default.asp) to do some processing before displaying the contents.
View Replies
View Related
How to print in asp or how to use Crystal report in visual Interdev or frontpage?
View Replies
View Related
I have a problem opening a file with ADODB.Stream when <HTML> exists on the same page
here is the code I use :....
View Replies
View Related
i seem to have a problem printing my timesheet to make it fit into a a4 paper. is there a way to have it to print using ASP but force it to print in a4 landscape.I have tried using my printer settings and force it to landscape,but the whole table and font comes out really big and makes it continue to print to another page.
I have also tried to use the printer settings to print into A4 or even print to 60% of the size, but still cannot. Even though the data is not really long it goes to another page.
View Replies
View Related
I've built a form/report for visualize the informations from database. I've used jscript code. How do for printing on the network or local printer ?
View Replies
View Related
I want to do a Ms Word document in a ASP page. I can do it, With the code lines:
/////
Response.ContentType = "application/msword"
Response.AddHeader "content-disposition", "inline; filename=OrderFax.doc"
////
With these lines all document content show like a Word document.
But i can not change the MARGINS of this Word document.And Default
left/right margins are very bigs.
I try it, change the <body> attributes and with styles, but this don't work,
the margins are always the same.
How can i modify the margins of word document? I should do this with another method?
Can I modify PC client settings to change the defaults margins of word document create througt the web?
View Replies
View Related
I am trying to implement a printing to file solution of a html page on the server. What I have is a form with a IE control that loads the page I want to print to.
I am using execWB command for printing. Printer's port is set 'To file'. Everything works fine when I am running that component from a desktop apps. But when I call that component from an asp page nothing is happening. I dont see any dialogs popping up on the screen.
BTW, if I print to a printer works fine either.
View Replies
View Related
can we print asp records which are retrieved from data base with a print button
View Replies
View Related
I'm currently working on an application that has to open word documents (word forms) and read and write data from/to it. But, unfortunately, the web server hasn't Word installed (my ISP...). Is there any other way to do that?
I'm currently investigating about working with rtf documents, but the syntax is turning me crazy!!! Any idea/dll/other way to do that?
View Replies
View Related
We have LOADS of documents scanned to PDF format, stored
in SQL tables.Allowing a client to browse our ASP driven site to select
and view individual PDFs has been no problem. ("index"
table is queried to show list of available PDFs, user
clicks a link in the list, PDF reader shows the document
in a new window.)
Now, they would like a feature that would PRINT (at their
location) batches of documents via the website,
preferablely with a single click.
View Replies
View Related
I would like to have a PRINT button on my page, that redirects to another page which is more printer friendly.
I am pulling the content of a database (msAccess) into the initial page, and want that content to carry accross..
Here is an example of the page http://www.australie-voyages.com/en...-tours.asp?id=8
View Replies
View Related
I am writing a little ASP script that reads the URL and generates a navigable breadcrumb trail from it. It is highly dependant on the filename and folders being named appropriately and consistently.
However, what would be prefereable is for the file that you are currently reading to be generated in the breadcrumb base on the document <title> instead of the actual file name.
Is it possible in ASP to read a <title> attribute?
Naturally, the ASP script would be in the <body> of the document and as such the <title> would already have been written to the client.
View Replies
View Related
how can i print the current page when i click the print button in this page??
View Replies
View Related
I'm having problems printing to the page. When the user click on the print button it is suppose to print the document to the page and it's not. What am I doing wrong? Code:
View Replies
View Related
<%@ Language=JScript %>
<%
print "OK";
%>
But,it's error.My computer was installed IIS
View Replies
View Related
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.
View Replies
View Related
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
View Replies
View Related
Is there a way to code an if then statement that allows me to write to my database logs if the print button is clicked?
<form id=form1 name=form1> <input type="button" value="Print" Onclick="print()" ; id=button1 name=button1></form>
View Replies
View Related
I am working on an asp page, where I need to set the title to a variable. I have tried
Code:
<% document.title = variableName %>
I even tried
Code:
<% response.write "<title> " & variableName & " </title>" %>
That doesn't work either. I need to set the title to a variable on a dymanic ASP page
View Replies
View Related