How Do I Save An XML Document To Back To Disk
I read in an XML document, change an attribute here or there, now I want to save the new version back to disk,
View RepliesI read in an XML document, change an attribute here or there, now I want to save the new version back to disk,
View Replieshow to work with ASP apart from tweeking some codes through Macromedia at times.The application has 1 form and 2 reports.
The report is viewed directly at the site and now I want a feature to export the report to excel by adding a button on the report so that it asks me to save it onto my harddisk in Excel.Can anyone help me with the code or concept?
I need to load a load a web page and save the whole page to a file.
I tried ADODB.Stream.Open
"URL=http://www.someurl.com/default.asp?parameter=somevalue"
this fails when you append querystring parameters to the URL. Otherwise it
would have been fine.
In the Sql server 2000 I store some word documents.Then I get the data from the database
through the asp code and display the word document in IE.The ContentType is "application/msword". how to save the word document which is edited to the database.
I've an ASP.Net c# application that needs to read Word documents from a directory on the web server, open them in Word from the client browser, edit the content and then update the document on the server.
I can almost do it by pasting the url into the "Save As" location but I get a "read only" message when I try to save.I'm happy to code httpRequest objects or Word automation,if necessary, but I need to resulting procedure to be intuitive for the user.
A site Im working with has an API that allows one to retrieve files.
The file is a Word doc sent as a byte stream.
url="blah.asp?fileid=777777"
set oXMLHTTP=server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
oXMLHTTP.open "POST",url,false
oXMLHTTP.send
binData=oXMLHTTP.responseText
I am trying to save the stream as a file on the Web server. It isn't
working. I've tried using FS.OpenTextFile, Stream.Write, etc.
Nothing is working.
Anyone have any sample code on how to do this?
I have gotta a page in which a user can upload his profile (saved in word format). Is there any way that this profile can be stored into the database and not in the web directory. I tried using Scripting.Dictionary.
View Replies View RelatedHow can I copy a file from disk to server?
View Replies View RelatedWe have a process at my work where we use a program (DameWare Utilities) to generate a text file of all of the hard disk space used/free from all of the servers on our network. We then import the text file into an Access database and use an ASP page to view the information.
We are looking to automate this process a little more. Ideally, we would like to make an ASP page that will retrieve all of the disk information from the servers, and save it to a database. The problem is that we can't seem to be able to connect to drives on other computers, even by mapping them.
I'm looking for code regarding opening (not saving) binary files (pdf, word, excel...) from hard disk with asp, the website is hosted in C: and the pdf files are in D:
View Replies View RelatedI have two machines, one generate files, and copy to the other.
I try wscript.shell in my program, but it dit not work.
The two machines are not in the same domain. I saw some people's
question but not suitable for me,their machine are in the same domain.
They can assign permission to do the job.
I have a form that submits values to an asp page. If their is an error on the asp page that is called and you go back to the first page with the form. The values are not in the form.
How can I set the value back into form without the user having to retype them in? If I use hidden fields on the first asp page and I go back to that page wouldn't the values for the hidden fields be empty as well?
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.
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 RelatedIs 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 RelatedI 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?
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?
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.
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
I've been looking (unsuccessfully) for a tutorial on creating Word documents from ASP. I know it can be done and have been able to find some references to various aspects of this, but nothing that spells out the process from beginning to end.
What I'm trying to accomplish is being able to generate a paper document using some information that is contained in an Access database. I have a ASP script that will generate the same info on the screen, but nothing that will put it on paper in a clean, professional format.
I am creating a word document from an asp page. I have no problems
actaully creating the document and creating some tables that have data
in them. I am using Response.ContentType = "application/vnd.ms-word"
to create the actual document. My problem is that I want to place a
picture (which resides on the server) into the word document as well.
However all I seem to get is the place for the image but a picture of
an "x" meaning that the picture is missing.
If you wanted to create a dynamic XML file for Froogle bulk upload based on products from your database, is it possible?
View Replies View RelatedI want to perform a full-text search for a lot of MSWord documents. So that I have to read the MSWord content and store it to the database. However, I cannot find any solution on it. What should I do if I want to perform a full-text search for these MSWord documents? or any alternative solution for me?
View Replies View Relatedis it possible to fax an document to another location in ASP? or is there any plugin avaliable?
View Replies View Relatedmy code [see attached] does not appear to be working once I document write it out. In the enclosed page the top bit of code is the code that works. The bottom bit of code is what I have tried to acheive.
View Replies View RelatedI am trying to create a flash/xml/asp application and I have the flash part done. The flash object sends an xml document to the asp page and I wan't the asp to save that xml to an xml document.
I think I have figured out how to access the request, but I far as saving it to an xml document don't even know where to start and google's not being very helpful. Code:
is it possible to get the url to the refferer to a page as a asp value (vbscript) ? I know the document.write(document.refferer) but don't how to use it in an asp script.
View Replies View RelatedI have a site which offers documents (.doc, .pdf, etc.) for download. The user clicks on the link and is able to download the file or open it. What if the source location of the document is behind a firewall of a remote server (i.e. not the server running the ASP application)?
How can the link be configured in such a way so that security parameters are passed to the firewall to authenticate the access. This must be seamless to the user, i.e. they mustn't know there's any authentication happening behind the scenes.
I have an ASP script that send mail to recipients:
inside it have:
1. link to a document stored on my server
2. same document as attachment
Problem:
sometimes the when you try to open the attachment it opens as gebberesh, and word ask you to choose encoding (offcourse no encoding fits).
In the same time when you try to open this document via link to a server it opens fine....
i have an ASP Page that generates a PDF document. After the generation i save the generated document as a file. all works fine.the only strange thing is, that my document is stored twice on the filesystem.
View Replies View RelatedI am creating a simple XML file via asp and want the XML to appear in the browser. Here is what I have tried: Code:
View Replies View RelatedDoes anyone know how to display the Document Title of a .pdf file onto a webpage and make it as a link using vb.net? I don't want the filename, but the Title of the Document that you can set when you open up the pdf file, then "File/Document Properties/Summary".
View Replies View RelatedNot a problem with my code, but something I would like to add, (ASP
VBScript) at the moment I have a form where a user uploads their details
including a document (Doc, PDF, TXT, Docx) The document is uploaded to a
folder on the server with the address being stored in the database and I'm
tracking the user id through sessions.
What I would like to do after the upload is redirect to a blank page, where
some script extracts the data from the document and inserts it into another
field on the database associated with the user id, I think this may be called
parsing, but I'm at a complete loss, I don't suppose you guys have any ideas
on this do you.