Print File Located On Server

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


ADVERTISEMENT

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 View Related

Download A Remotely Located File

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

GLOBAL.ASA Recognize File Located In Subdirectory Of Webserver?

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

Print PDF File

Is any way to print a pdf file automatically using ASP?

Once the pdf file is loaded from a website or whatever, the file will be printed from the printer which is located on the server side. How to do it by using ASP?

View Replies View Related

Print File

I have serveral links on webpage, and each linked to file such as doc, pdf, xls, etc. Just wondering if there's a way to to print those file by clicking on the link (without opening the file). any javascript or vbschip that does that?

View Replies View Related

Print Part Of An Asp File

I have link from a page.If you click on 'pedir presupuesto' it goes to a form, when someone clicks submit on the form the next page sends an e-mail, and must print part of the table from the original asp page (0.asp - from the first darker grey header to the second one).

View Replies View Related

Print An ASP Form By Clickng Print Button On Same Page

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

Wscript.Shell Run PRINT And NET PRINT Returns Nothing

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

Self.print Without Browser Print Prompt

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

Copy Or Upload File From Server To Ftp Server

I want to copy or upload a file from server say some lanserver to ftp server through ftp. Is it possible.

View Replies View Related

Upload File To Server And Get File Properties

I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.

I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.

What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).

I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.

View Replies View Related

File Held On Server's File System

i am currently working on a project in which part of the requirements are to store files on the Server filesystem and make these files available for download by users. Is there a simple way to provide the user with a link which starts downloading the file when it is clicked?

View Replies View Related

To Save A File To A Server And Retreive The File

I have an asp page, which displays graphical images.I am using Flipper graph in my application.

There is a link in the asp page "Click to view Image file",On clicking on this link,The graphical image need to be stored(Preferably in the server machine) and has to be opened in a new browser window.

To explain in detail. On clicking of that link"Click to view Image file" a function is called which does the following

1)Save the image file(.gif file) on the server machine
Graph.ImagetoGif("Location to be saved",100,200);
2) Opens the image on a new browser window.

window.open('from location from where the image is to be retreived',100,some more properties) So i need the image file to be saved in the server and retreived from the server.

View Replies View Related

Post File From Server To Another Server

I accept a few user inputs and a file from the user, post it to my ASP page.
I'm able to receive the data as well as the file properly in Receiver.asp.
In my receiver.asp, I need to process the user inputs and subsequently POST
this data and the file again to a different server. I would like to use
ServerXMLHttp. Now, how do I simulate Form creation in receiver.asp.

I use the following code to post to the second server
MyXmlHttp.open "post", myTargetURL,false
MyXmlHttp.setRequestHeader "Content-Type", "multipart/form-data"

Now here's where I get stuck.

1) How do I construct the form data? How can I put together the data i
received (which is text) as well as the received file (which is Binary) in
the same Send statement for the Post? -- I assume that if HTML forms do it in
some format, I should be able to simulate the same through ASP, but how???

2) The received file will not be stored anywhere in my server. It has to
be forwarded in memory.

Should it look somewhat like the following?

MyXmlHttp.send ("userId=" & someUserId & "&privateLabelID=" & someLabel &
"&File=" & receivedBinaryFileInMemory)

View Replies View Related

Get File From FTP Server

<%
Response.Buffer = True
Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
'objHTTP.open "GET","ftp://xxx.xxx.xx.xxx/xxx.mp3", false, "username",
"password"
objHTTP.open "GET","ftp://username:password@xxx.xxx.xx.xxx/xxx.mp3",
false
objHTTP.send

Response.ContentType = "application/octet-stream"
Response.BinaryWrite ObjHTTP.responseBody
%>

why the above code does not let me access the file on the FTP server? Neither method to authentcate seems to work. Also tried "OPEN" but I don't think that worked either.

View Replies View Related

File Server With Img Tag

I have images on a file server with the name convention of lastname, firstinitial, and last 4 of SSN. I already have the select statement to concatenate all three from my sql server database. Now how do I get asp to query the statement in a IMG SRC tag calling the images from my file server?

here's my sql statement:
Select 'srv-file-b/j:data/cert_pics' + rtrim(lastname) + left(ftrim(firstinitial),1) + Right(SSN, 4) +'.jpg'
from customerInfo
where customerID = 1116

My problem is that when i execute the page i get an X where the image should be.

View Replies View Related

Upload A File To The Server?

I have just this morning built a very basic login area for myself.

Now I wish to have a script that will move a file on to the server.

I have tried looking up Google but it seems a bit quiet on tutorials with this.

Can anyone point me in the right direction?

I basically want to be able to upload a file onto the server with an ASP script.

View Replies View Related

Reading File From Server

Consider the following code snippet:

<%
Dim objFSO,objOpenFile,strPath

strPath=Server.MapPath("ADList1.txt")
Set objFSO=Server.CreateObject("SCRIPTING.FILESYSTEMOBJECT")
Set objOpenFile=objFSO.OpenTextFile(strPath,1)
Do While Not objOpenFile.AtEndOfStream
Response.Write(objOpenFile.ReadLine() & "<br>")
Loop
objOpenFile.Close
Set objOpenFile=Nothing
Set objFSO=Nothing
%>

When I try to execute the above code, the code never gets executed. Neither
am I shown a script timeout error. After a lot of investigations, I
concluded that the code is not getting executed due to the presence of

Set objOpenFile=objFSO.OpenTextFile(strPath,1)

If I comment line nos. 3 to 8, then the code gets executed but as expected
without any output. Is this happening because of some permission which has
not been given to IIS 5.0? If so, what is it? I am working on Windows 2000
Professional.

View Replies View Related

File Uploading To Server

Can you help me find an asp code that will upload a file from my PC to web server?

View Replies View Related

Using Asp To Generate Xml File On Server

Is it possible in a global.asa file (or some other way) to have an xml file generated by an asp script and saved to the server some how?

<%
Dim xmlDoc, rootEl, child1, child2, p'Create an XML document
Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")'Create a root element and append it to the document
Set rootEl = xmlDoc.createElement("root")
xmlDoc.appendChild rootEl'Create and append child elements
Set child1 = xmlDoc.createElement("child1")
Set child2 = xmlDoc.createElement("child2")
rootEl.appendChild child1
rootEl.appendChild child2'Add an XML processing instruction
'and insert it before the root element
Set p=xmlDoc.createProcessingInstruction("xml","version='1.0'")
xmlDoc.insertBefore p,xmlDoc.childNodes(0)'Save the XML file to the c directory
xmlDoc.Save "c: est.xml"
%>

THis seems to be what i am after but when I try to modify the xmlDoc.Save line to either "/images/listings/test.xml" or imageslistings est.xml" and it comes back saying it can't find the path. If I just leave "text.xml" it comes back saying permission denied. If I can solve this path issue so as to be able to save the file to a directory I think I will have it solved.

View Replies View Related

Reading File From A Server

I understand i can not use Scripting.FileSystemObject to read a file that resident on another server and i need to use something else.

View Replies View Related

Writing To A File On A Server

I would like to create a file on the hosting server (if it doesn't exist yet), then I would like to write some error information into it. Finnaly I would like to retreive that information later.

View Replies View Related

I Have Some File Want To Make A Web Server

i creat one sql server and want another computer on my lan run my web server (i mean the computer on lan can insert data and store to my sql server)but i don't know to do that .i used windows 2003 and IIS6.

View Replies View Related

Retrieve File From Server

I am trying to fetch a file loacted on the server under a directory '/resources'.

are there any VB specific protocols for doing this?

View Replies View Related

Uploading Csv File To SQL Server

I need to know the codes to upload my csv file (*csv) generated from Excel to SQL Server. I aso need to have the codes for uploading my CSV file to my access database..

View Replies View Related

File On Apache Web Server

on win xp i am using apache web server and i want to run my asp files using apache web server....

View Replies View Related

Uploading CSV File To SQL Server

i need to know the codes to upload my csv file (*csv) generated from Excel to SQL Server. I aso need to have the codes for uploading my CSV file to my access database.

View Replies View Related

Upload A File To My Server

I would like a somewhat user-friendly way to have the browser-side user select a file to upload and then have that file be uploaded to my web server. Speed is an issue.

View Replies View Related

Lauch .Bat File On Server

I want to be able to launch a .bat file on my server.So far have created a virtual directory on my server called Scripts and allowed scripts and exectuables to be lauched in it. I have also given IWAM_COMPUTERNAME AND IUSR_COMPUTERNAME full permissions on the folder.From serving the net i have put together this little bit of code:

<%
Dim strCommand, objWshShell
strCommand = "N:HTTPVirtual Directoriesscript est.bat"
Set objWshShell = Server.CreateObject("WScript.Shell")
Call objWshShell.Run(strCommand, 1, TRUE)
Set objWshShell = Nothing
%>

However i keep getting a error on line 5 "Call objWshShell.Run(strCommand, 1, TRUE)" but i cant see what the problem is?

View Replies View Related

Deleting File From Server

I can easily upload images, add to db etc etc... but is there a way of actually dynamically removing image files from the server? At the moment I have clients uploading banner adverts to the server, but if they decide to delete the image, it removes the record from the database.

I need to go one step further and remove these 'old files' from the server instead of simply taking up space etc. anyone have any great applications or scripts I can use with a delete statement?

View Replies View Related

Detecting A File From Another Server

What i wanna be able to do is make something where my server say, www.billy.com can do something like this:

if yahoo.com/images/banner.jpg = true

then response.write "That image was detected"

else

response."write" "That image was not detected"

View Replies View Related

Delete File From Server

what r things that I have to do to let the client browser to delete a file on the server. I'm running my server on WIN2000 pro, IIS 5.0. I've stored my website and server in a virtual directory. This is the code i use to delete a file from the server folder

Code:

Function delete_file(exceldb)
'***************** Delete**********************
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileObject = fso.GetFile(Server.MapPath("..upload2uploads"& exceldb))

fileObject.Delete
Set fileObject = Nothing
Set fso = Nothing
' Deletes exceldb
End Function

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved