First, a little background. I'm developing an order management system for my company and I want to be able to print a batch of packing slips in one go without pulling each one up on the screen and clicking 'Print'.
How can I do this in ASP? The only way I can come up with is to loop through the records and concatenate a string with the HTML code and then send that string to the printer. But, I'm not exactly sure that's the best way or if it is even possible.
I want to basically click a button that says "Print All Packing Slips" and never see an output screen.
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.
Security issues, warning messages, etc., aside, what MIME-type combination do I need for and ASP to write a BAT file to the response stream? e.g. Response.Clear Response.ContentType = "application/octet-stream" Response.AddHeader "Content-Disposition", "attachment;filename=message.bat" Response.Write("net send COMPUTER2 success") Response.End() This code does not work! Which is surprising because in my current config, the following html works fine, and executes on the shell: <A href="message.bat">test</A>
i have to start a batch process from a dll to transfer files created by this dll to remote ftp server. I created a batch file:
ftp -n -v -i -s:D:atchftpcmds.txt ftp-server
and a file containing the ftp commands:
user username password lcd D:atchmedia mput *.* quit
It works pefectly when i start it from the dosbox. But when i call it from the vb dll implemented in IIS (shell ("D:atch ransfer.bat")), it does not complete the transfer and hangs after 400-500 (small) files.
I have a web page that sends emails to groups of recipients. It uses CDONTS to send each email. While it works fine for sending a small amount of emails out, it chokes the page when sending to large amount of email addresses. Basically, it loops through each email address and sets the CDONTS object each time. I need to do this because each email is personalized.
Does anyone have any thoughts around how to optimize this code. Is there anyway in ASP to send the code to a background process for example?
I need to send batch html emails out from a db mailing list (anything up to 1000 in one go).I am using CDOSYS and standard ASP. My problem is that it will error if I try to do any more that 5 every 30 seconds - this is fine when I send them out myself (I have a script to do this) but now I need a program which will allow users to send out batches and I want it to appear seamless.
Is there a way I can put a print button on my asp that will actually print the current Screen opened. My asp has an access backend.On my asp page can I have a button that can actually print a report from the Acesss Database.
Is there a way I can put a print button on my asp that will actually print the current Screen opened. My asp has an access backend.On my asp page can I have a button that can actually print a report from the Acesss Database.ie a button that will go the report section of access DB and print teh report that I want a way to get around with the appropriate codes will be appreciated as I am new to asp programming.
We're trying to write an application that will allow a user to enter an id field from an ASP intranet page and when they hit the enter button, fire off a print job. The problem is, Adobe must be open as the items being printed are PDFs.
We tried firing off a print command using MS SQL cmdShell() (not sure if that is the exact name of the command) and it works, but it never completes. The process hangs in the database because, we think, it hasn't closed Adobe, therefore never coming back to the query. We wrote the query into an ASP page.
Adobe must be open or the documents won't print properly.
Does anyone have any suggestions to how we can automate this?
I have a form that users enter details of a car (e.g make model , idnumber#) and then press save to save to the database they may want to order 10 cars with the same details exept the idnumber so to save the users entering in all 5 details I want to make it easier.
Should I have a list box and let the user add idnumber items from a text box and then pass this to my update asp and loop through + to save to the database or should I save one record and then return back to the same form Note : I am having problems with this method as only part of the fields show when I hit the back button I just wondered what is the best method of doing this I am spoilt for choice and I also get problems.
I have a batch file that needs to execute every day and I need to run it in a silent/invisible mode. I looked up on the Internet and found this command: shell("batchfilename.bat").
Upon failure, learned that it is a Visual Basic command and not VBScript command. I wonder if anyone knows how to run a batch file using vbscript that runs in invisible mode?
if anyone has experience in building the ability to upload/insert multiple images from one directory on the client machine to an Access database via asp. The process would be to click on the browse button for the correct images and you would be able to click on multiple images using ctrl or shift button and then insert the selected files into the database. Can this be done?
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run. in an asp script. Naturally, I can get the script to work from a command line but not from abrowser. The page does not throw an error but the oShell.Run. portion of the script doesn't run.
how to go about sending a batch of sql statements from asp to sql server, and having errors appropriately handled? for example,
i want to send the following stored procedure calls to sql server in a single batch from my asp code, rather than using a loop in asp to execute each procedure individiually. if one of these fails, they all should fail.
im trying to run a bat file on windows server 2003 and am running into nothing but problems.
i have IIS on my XP workstation that accesses the 2003 server. what im about to explain below works properly on the XP IIs.
i have two files: somefile.asp and somefile.bat. the asp file creates a wscript.shell and then tries to execute the run method for somefile.bat.
however, it isnt working. after an unexaggerated 7 hours of searching google/etc, i have found nothing but frustration and deep, seething anger regarding this problem. Code:
I have a batch file that takes variables from the cmd and passes them by sqlcmd to an SQL script. When I pass the variable 'MikeTestList' the script runs as expected with no problems. When I passed 'BulkTransferTest' I got an error message, 'The string or binary data will be truncated'.
Some testing has shown that I get the error when the string is anything above 12 characters. Is there a limit to the length of a string you can pass using sqlcmd from a batch file? Is there any way around it?
Also, if I have a space in the string, it only passes the string up to the space. I have tried to fill it with a '%' which then gets passed as is, so the % stays in place through out the script. Code:
Okay there is an unique EventRegID for every registration. When people first register they get pre-registered. Then an admin comes in and confirms or wait list them (based on whatever requirements). My question is how can I tie the EventRegID to a form with multipule ID's so they can batch confirm or wait list the PreReg list? Code:
in master batch table i have various master batch like 200701-0001 200701-0002 200701-0003
Now each master batch can have multiple final mixed batch like
200701-0001-01 200701-0001-02 200701-0001-03
and this record is inserted in to fmix table.
so i have a form in which i have a dropdown menu in which all the master batch is listed, i select 200701-0001 and that value is passed to next page where i will enter other fields data and insertion to my fmix_no will be done automatic like 200701-0001-01, 200701-0001-02 and so on,
how to achieve this
so in short each master batch will have more than one final mixed batch.
pls help, also if u have any online contact in yahoo or msn pls send me, i am so confused and badly struck deadline is just couple of hours away. my yahoo id is(E-Mail address blocked: See forum rules) you can PM me i am online right now.
I have written a report in ASP that comes up in .pdf format. It is exactly what I want except I can't control page breaking. The report lines roll over automatically thus I don't have a report title header. Is there a way in ASP to perform that task? I have also read about using .css for this, but can't seem to find a good example.
Is it possible to send a file directly to printer in ASP? I have an ASP page display the list of files associated with the record with hyperlinks to the files. I want to provide a link next to each file to allow people to click the button and send the appriopriate file to the printer. Is it possible to do this in ASP or ASP.Net?
I need to take the report of Ledger of all the customers. I want each customer Ledger to be printed on different page with same page headers and page footers. Only the the Name of the customer and his ledger information would be changed.
One cutomer's Ledger can go for more than one page, In that case it must print the data on the same number of pages and start the next customer page after this customer's ledger finishes.
Infact I am looking for complete reporting system as we can make in Crystal Reports with Classic Visual Studio or .net.Hope someone can help with dumy Sourcecode. Infact I need to know how I'll format in HTML. ASP and Database queries are easy to run.
I have big problem in printing.. I am getting 20 colums of information from my database.
in asp, the width of the page is long. The problem now iam facing is printing, its only printing those information which are visible and the rest on the right side of the browser is not printing..I really dont know what to do.
I have an asp page that displays a recordset from a table in paginated format with header values on each page from another table in the database. To print, one needs to click the print button and a new page properly formatted pops up and opens the print manager in windows.
One must do this for each page. If I have 300 pages that's a lot of work for the end-user.Attached is the code I'm using to print.Does anyone see how I could make it utomatically print ALL the pages, rather than one at a time?