Print The Full Path Of A Script
help me with a simple asp code snippet, since I have no idea how to implement it (in asp anyway...) I wish my script to print the full path from which it is running on the server. How can I do this ?
View Replieshelp me with a simple asp code snippet, since I have no idea how to implement it (in asp anyway...) I wish my script to print the full path from which it is running on the server. How can I do this ?
View Repliesi 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 RelatedNo 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.
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 RelatedI need to get the full URL of the current page in ASP. When using Request.ServerVariables("URL") anything after the filename (such as a #section1 to jump to an area on the page or data submitted from a form using the GET method) is automatically removed. I do not know of any keys for the Request.ServerVariables collection that do this, but cannot find any other objects/properties that would be appropriate.
View Replies View RelatedI have problem with physical path & virtual path on the server.
<!--#include virtual="country/inc.bottom.asp"-->
In this script it is working.
In all the file i have <!--#include file="../ar-inc.top.asp"--> this script.
I have about 10,000 files in the website.
I have a query that displays values from a db.
The problem is that the value displays like this:
R 6.5
instead of like this:
R 6.50
How would I get it to show the full value?
Just curious: is there a bit of ASP code you can place in the top of a document that will force all root relative image and file paths in the HTML of this doc to expand to include the full URL?
I doubt it, but before I did it manually, I thought I'd ask. We use a template of sorts, but need one document to use the full URL, and it would better to just have it that way in the one document and not the entire template.
I'm using Windows Integrated Authentication on my company intranet ASP web
site (IIS6 W2K3).
I would like to know how could I get the full Active Directory domain name
from the Logon_User variable.
I always get the netbios name of the domain, but I need the full domain name
to be able to distinguish users (because actually there is two companies on
the intranet having their AD forest linked, but also having some subdomains
with identical netbios name !).
I mean, for instance for a user login "theuser" coming from the domain is
"thedomain.thecompany.com", I need to get in Logon_User environement variable
the following content: "thedomain.thecompany.com heuser"
At the moment I only get "thedomain heuser", excepted if I switch to basic
authentication, that I don't want.
I am not sure that asp is a right place for that question, so gurus will move it to proper section. But as soon as I display images using aspupload the solution probably will be also in asp. I do not have problem to show them on asp page, so it is not a problem of aspupload. Its just a general asp question:
Do you know any techniques how to display full screen images without using popup window?
I would like image to take all the full screen without any browser menues or explorer menu bars. Something like you see when screensaver turn on.
i have a string and i would like to run through this string to find a "."(fullstop), and once found put a break in so that i could continue the rest of the string on the next line.
if there is a way to do a text search through pdf documents?
If there is, can someone show me how, or at least point me in the direction of a good tutorial?
I have a price field in a cms,it can deal with full stops fine, but i cant understand why it wont accept commas.
View Replies View RelatedI have a text file that is called up in an ASP page. The text file is the content of a table that is built into the ASP page. My question is if the text file does not have anything in it or is equal to a certain value like "No Updates Available" how can I tell the ASP page not to display the table at all?
I figure it will be using some form of FileSystemObject. I just don't know how to do it.
I have developed a website with ASP.NET Jscript. Im fairly new to development so i used DreamweaverMX and Webmatrix which was very useful. Now I want to enhance it further by adding a search facility into my website and thus providing users to actually find contents within my webpages and display the same.
View Replies View Relatedi want to know how to use the MySQL full-text search feature using ASP.
Also, how do i index my web pages using MySQL full-text search.
I have an Access database driven website using ASP in IIS 6. On my website, I have a discussion forum, I wonder how can I add a full text indexing feature into my forum. So for example, when someone wants to search the word "fish" in the forum. All threads that contains the word "fish" should popup as the search result.
View Replies View RelatedI have just got a datafeed and i'm trying to put it in an actinic website for a customer. I match every record eccept price feed Actinic says imported fields must not contain any decimal points i.e £1000.00 should be 100000 how do i do this in excel ? I can't see anyway of formatting it to match the requirements.
View Replies View Relatedi need to know that when i make some asp pages in .NET then i arrange all the contents such that it would capture all the space in the browser window. but it leaves some
space emty when i run this page in Internet Explorer. please any when let me know that hw can i slove it?
I'm trying to figure out if this is possible before i have someone start scanning a bunch of images.
If i scan a bunch of images and give them specific names can i then look at that dir and read the name of the file and write a link in a field of a table?
example
FOLDER CONTENTS
123254.jpg
125684.jpg
168468.jpg
TABLE record example
epn =123254
name = Bob
Picture = 123254.jpg
i want the name of the file to be written if there's one in the folder for that epn.
I need to show two pictures in a table with two TDs
The pictures R dynamic and I don't want to enlarge the table...
How can I load the picture with IMG tag so that it's width will remain smaller than 150 pixels (or set it to 150 pixels if it's longer than 150...)
Must I check the picture file width or is there a faster workaround ?
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?
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?
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 RelatedHow to print in asp or how to use Crystal report in visual Interdev or frontpage?
View Replies View RelatedI have a problem opening a file with ADODB.Stream when <HTML> exists on the same page
here is the code I use :....
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.
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 RelatedI 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.
can we print asp records which are retrieved from data base with a print button
View Replies View RelatedWe 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.
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
how can i print the current page when i click the print button in this page??
View Replies View Related