User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,612 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,448 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1140 | Replies: 7
Reply
Join Date: Mar 2006
Posts: 4
Reputation: jcmoles is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jcmoles jcmoles is offline Offline
Newbie Poster

Please help, been a few years.

  #1  
Mar 25th, 2006
First of all, let me say I am new to this forum.
It has been a while since I attempted any programming. I have used vb.net, HTML, vbscript, and javascript in the past.

Here is my problem.

I am wanting to make a web page with pictures, under the picture will be a checkbox. At the bottom of the page there will be a print button. The pictures on the site(which is an intranet) actually represent excel(.xls) files. If a checkbox is checked, when the print button is pushed it will print that file. I want to keep it simple.

Is this possible? If so, can I get an example.

Thank you.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2006
Posts: 4
Reputation: jcmoles is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jcmoles jcmoles is offline Offline
Newbie Poster

Re: Please help, been a few years.

  #2  
Mar 25th, 2006
Basically, I am wanting the print button to call a function like:
<input type="button" value="Print" name="btnPrint" onClick="printfiles()">

in the function

if Checkbox1.value = True then
print.file("c:\test.xls")
if Checkbox2.value = true then
print.file(c:\test2.xls")

is this possible?
If so can someone through me some code, with formatting to test out.

Thank you again
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 107
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: Please help, been a few years.

  #3  
Mar 25th, 2006
Hmn, that might require a server side language.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Please help, been a few years.

  #4  
Mar 27th, 2006
Print these files? Where? If you want the USER to download/print the XLS, all you can do, reallly, is serve it back to them. Printing is a user function, and something you cannot "force" to happen, particularly with a streamed file. They may not even have Excel installed on their system.
Reply With Quote  
Join Date: Mar 2006
Posts: 4
Reputation: jcmoles is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jcmoles jcmoles is offline Offline
Newbie Poster

Re: Please help, been a few years.

  #5  
Mar 27th, 2006
As stated above:

It is for an intranet. Not internet. All users do have excel. It would be a user function you are correct.

I am wanting them to be able to select the files they would like to print. Hit a single print button, which will print the documents they selected, without having to open every single excel file, then printing it. It becomes complicated when you have to open 30 different excel files and print it individually.

This would save time.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Please help, been a few years.

  #6  
Mar 27th, 2006
What I mean by "user function", is that printing is something a web program cannot "force". It's up to the user... I don't think you can code a "batch print" feature into a web application.
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 107
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: Please help, been a few years.

  #7  
Mar 27th, 2006
*Mumbles Something about VBScript And ActiveX*
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Please help, been a few years.

  #8  
Mar 27th, 2006
Ok, let me rephrase: Using cross-browser JavaScript, CSS and HTML (the focus of this forum), I do not believe it is possible to code a system to automatically batch-print multiple Excel spreadsheets in an Intranet environment.

ActiveX is deprecated, Microsoft has moved onto .NET, but sure, if you wanted to do some IE-only activeX-cum-Excel-cum-VBA-cum-vbscript ASP thing, it might be possible. That's outside my area of expertise, so I'll bow out of this thread.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 8:39 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC