Using ASP Coding ,wants To Open .doc File
i'm trying to open document file through ASP coding. but an error "Could not open macro storage" comes. what shall i do ?
View Repliesi'm trying to open document file through ASP coding. but an error "Could not open macro storage" comes. what shall i do ?
View RepliesI need some help in uploading file using asp coding.
View Replies View RelatedI'm trying to include a value from a text file for the txRate variable in the code below. I tried using the include function as shown, but the double quotes are of course killing it. I don't want to use a data base to get this value, I just want the info from a text file. Can anyone suggest a solution? Code:
View Replies View RelatedI'm trying to include the data from a text file for cSalesTaxRate, cStateFullName and cStateAbbreviation values in the code below. I don't want to use a data base to get this value, I just want the info from a text file. Can anyone suggest a solution? ....
View Replies View Relatedi am having a problem in how to create a Open File dialog to enable user to select a image file that will be stored into database. i just want the file path to be stored in database, not the image.
View Replies View Relatedi want to open a dbf file in asp which is saved in a directory. The Path of the file is "F:mywebdb". The dbf file is saved in the above path and is called test.dbf. I write the following programm to retreive the records Code:
View Replies View RelatedIs it possible to struture a link in a Web site so that when clicked it will open a particular file on a CD-ROM? I didn't create the CD-ROM and the files are AVI and DCR.
View Replies View RelatedI am trying to open a .tif/.cal file thru' my web site. This file uses a program to open. I have installed browser-plug-in for this program. However, using my web site when I try to open the .tif/.cal file, I get the message "This type of file can harm your computer ..." "Do you want to Open/Save/Cancel" . How can I get rid of this message.
I think the browser-plug-in is trying to open a .exe file that's why this message must be appearing. Is there any way I can specify not to display the message when this particular program is called?
I have pdf files that I would like to open in ASP. I've already searched the forum and didn't find what I was looking for.
View Replies View Relatedin MY website
i need to open PDF files
i have all headings for each PDF files are in my database
i need to display the headings (which i have in my database ),if anybody click that heading then corresponding PDF file should open for them to see
how can i proceed
Can anyone help with this? Here is the code I am using. The problem
is, where it checks if a file exists, it always goes to else. Even if
the file is there, it won't open the file, goes straight to else part
of statement.
<%
If Session("strLogID") = "" Then
Response.Redirect("http://website/pages/login.asp")
Else
strfile = Request.Form("month") & Request.Form("day") & " Misses" &
".xls"
Set fs = Server.CreateObject("Scripting.FileSystemObject")
If fs.FileExists("http://website/webreports/Misses/" & strfile) THEN
Response.Redirect("http://website/webreports/Misses/" & strfile)
Else
Response.Redirect("http://website/pages/missedreport.asp")
End If
End If
%>
I am creating a webpage and have a form where a visitor will choose a
day, month, and year. I want to pass the data from the form into an
asp page which will process it and put it into a string and open the
excel file requested. The excel file to open will depend on the day,
month, and year chosen in the form.
Is there a way to insure the user can't save the excel file that has been opened?
I have a link that goes to XLS files for users but I don't want to users to be able to save the XLS files to there local drive.
I am creating csv file by doing following. So when asp page get load this code run and it create csv file and store in specified location.
How can i open this store file in same window after it get created. I have a name and location of file "whichfn" how can i open into excel format. Code:
I'm having trouble translating a script that I wrote in php to asp. Well a line any how.
$fp = fopen("/mydomain/logs/mail.log", "a+") or die("Could Not Write Form Data To File.");
fputs ($fp, $info_from_form);
fclose($fp);
basically, the above line does is:- opens the file mail.log and writes to the content of that file. the "a+" means that if the file is not there then it will create "mail.log" and write to it.
The process was included in a form to email php script.
I am having problems opening a .aspx file. I have installed the .NET 1.1 Framework. When I go into IIS,Websites, Default Website, then look at the properties under documents, default.aspx is not listed.Is there something that I need to configure to add aspx?
View Replies View RelatedI have a page that calls an asp page within frameset in a popup window. It shows the code rather display the page. Any clues what might be going wrong?
View Replies View RelatedHow I can open asp file when I click on image after answering the confirm?here is my code:
<img src="delete.gif" border="0" onClick=" if (confirmSubmit()){ <a href='test.asp'>;}" >
<script LANGUAGE="JavaScript">
function confirmSubmit()
{
var agree=confirm("Do you want delete this item ?");
if (agree)
return true ;
else
return false ;
}
</script>
i would like to know how to open a new excel file and add tabular data in excel file from asp.
View Replies View RelatedI have a big problem with some part of my code, where I'm using the wscript.shell method to open a file...
I've tried this:
dim shell
set shell= createobject("wscript.shell")
shell.run "C:Clip_CreatorTVSA02.bat"
set shell=nothing
and this
Function fnShellExecuteVB()
dim objShell
set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "C:WINNT
otepad.exe", "", "", "open",1
set objShell = nothing
End Function
I don't get any error but the application doesn't starts, I've also tried executing the notepad.exe and occurrs the same, nothing happens, I don't get error but the notepad doesnt lunch...
I'm getting tired about this code, I've tried a lot of kinds of scripts but I got the same result...
How can open a Microsoft Word file by ASP?
View Replies View Relatedhow to auto load a exe file for user to download once the user enter the download pages.. how is the coding for that download page to auto pop up donwload windows for user to download the exe file???
View Replies View RelatedI have the following code at the top of my page. Is there a way to force Excel to open the spreadsheet? Presently, it opens within the browser window. I know it can be saved etc., but I would rather have Excel receive the data.
<% Response.contenttype = "application/vnd.ms-excel" %>
<% Response.AddHeader "Content-Disposition", "filename=" &
Request.Form("FileName") & ".xls" %>
I am trying do do this when a mouse is over a link (as the image attached), so a popup comes and show the database results, like i have done using Degsy solution.
I have a page (nw.asp) and it queries the db information. if is possible to call this .asp page in the div, I can use the 'a href' like this: Code:
<a href="nw.asp?id=<%=rs("id") %>">.
So this way will be possible to mouseover others links in this page, and as it is asking for id, will bring all the right values o.
I am trying to grab more information around this solution and any light will be so kinda.
I'm developing an application on an intranet. I need help opening a word document a powerpoint presentation and a .avi file. All of these files are quite large (1 -2 gig) and so I can't download them.
How can I just open a file over an intranet and not download it? I have tried the word.application activeXobject, but I get all sorts of errors.
I have a asp web page with a link point to a file which depend on the database information. Sometime is a picture file sometime a word and some time is a PDF file.
For picture file, when user click the link, it will open the picture inside the IE browser. Now here is my problem:
On some of the computers, for PDF file only, it opens outside of the IE browser. Like the Acrobat program is not in the browser. With the same code, some computer works good. But I want to force it open inside the browser. why and how to fix it?
Set fileSystem = Server.CreateObject( "Scripting.FileSystemObject" )
Set file = fileSystem.OpenTextFile( "config.xml", 1, False )
It's saying that 'config.xml' doesn't exist. How can I reference this file? It's in the same directory as the file with the above code. Do I need to build the path somehow?
have try to search from the MSDN, i found the namespace "System.Windows.Forms.HtmlWindow" has this function, but the my .NET Framework version 2.0 dont have the object. Moreover, i have try to download the .NET Framework version 2.0 from MSDN. But, it still dont have the "System.Windows.Forms.HtmlWindow".
View Replies View RelatedI want to write a ASP page to open/download a file In fileview.jsp, I have the file browse, and when user click submit button, fileview2.asp should open the file.
fileview.asp
============
<FORM ACTION="fileview2.asp" method="POST">
<P><input type="FILE" name="filename">
<P><input type="submit">
fileview2.asp
============
<%
String filename = Request.Form("filename")
Response.Redirect = filename
%>
However, this is not working. any ideas?
I want to open word file (or Excel) from IIS server (URL) without
getting security window for input Username and password. I know
Username, Password and Domain. I'm trying to open with:
http://domain%5cUsername:password@URL
When my computer is registred in this domain - no problem. But if my
computer is not from this domain I always get window for input
Username, Password and Domain.
I want to provide a function using asp for the users to search for their excel files in their PCs in IE and then upload to my database.
View Replies View RelatedI have 2 web servers both running win server 2003 with iis 6.0. On my
PROD server I have a virtual directory called CONV. It points to a
folder on the C drive of this PROD server.
On my TEST server, I defined a virtual directory called CONV. It points
to a share called prodservernameCONV. Note that the share name is
the same name as that of the virtual directory.
Using IIS on the TEST server, I can navigate to this CONV virtual
directory and via right mouse, click EXPLORE. I see all the content I
should but when I try to doubleclick on a file I get a message saying
"Security alert" - "your current security settings do not allow you to
perform system commands on this item".
I've tried everything I can think of on the security settings for the
physical folder on the PROD server. I extended EVERYONE from READ, etc.
to FULL CONTROL. I added the user called INTERACTIVE and gave it full
control. In short, I am stumped and guessing now.
Basically, I just want to avoid duplicating all the data files on my
PROD server over to my TEST server.
How would this be done for something like a text editor?
For example, say I wanted to launch a text editor from a hyperlink AND also the file I wanted to open with the editor as as well?