Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to print a file directly?

  1. #1
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to print a file directly?

    HI,

    I am going to try to explain what I want. This is far from easy. I hope I am going to make myself clear!

    Well, I have a lot of reports of meetings on my website. They are all ".doc" files.
    However nobody looks at the files on the web. Instead they all click on the link, Word opens and they go straight for the print button.

    I was wondering wether it was posible to make a special button or link where people could click on and printing would start immediately. Just one document or even groups of documents by one click.

    So, I am not asking to print the page, but the doument(s) on the page...

    I never saw something doing this... Is it possible???

    Best Regards

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No. It's the word processor that handles what's sent to the printer drivers, in this case, so the processor must be started in order to print it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Somebody please!

    Does nobody else knows how to solve this one? Anybody? Please

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It isn't possible.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Impossible is nothing!
    Could you use some visual basic maybe, so that word opens but closes immediately after the print commando is given by basic...
    I am just saying something...
    I need the help of a genious...
    However, thank you very much TWEY, a realy apreciate you answering to my stupid questions...

    Best Regards

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I'm sorry, it really is literally impossible. There may be some odd Windows- or IE-only way of doing it, but it would be a very grave mistake to use it, and would cause even IE/Windows users quite some inconvenience.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Sep 2005
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Put a note on the page:

    To print the document, right mouse click on the link(s) below then click on "Print Target".

  8. #8
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by MIL
    Well, I have a lot of reports of meetings on my website. They are all ".doc" files.
    However nobody looks at the files on the web. Instead they all click on the link, Word opens and they go straight for the print button.
    Everyone? Every single person that has ever, and will ever, download those reports will never want to look at them before printing? That's a very strong statement, and one that I doubt is true.

    Impossible is nothing!
    I think you meant that nothing is impossible. Well, that isn't true. Moreover, even if something is possible, it isn't necessarily wise to do it.


    Quote Originally Posted by Twey
    I'm sorry, it really is literally impossible. There may be some odd Windows- or IE-only way of doing it
    It wouldn't be impossible then, would it.

    but it would be a very grave mistake to use it, and would cause even IE/Windows users quite some inconvenience.
    Absolutely. Essentially forcing a print action isn't a good thing. Certainly not without letting a user preview what is being printed.


    Unfortunately, it can be achieved with IE/Win if Word is installed using Automation (formerly OLE). However, that in itself means the approach is subject to security restraints which could render it impossible once again.

    This also raises a far more serious problem: if permission is denied, an instance of Word will be created, but it will not be accessible. This means that it cannot be closed and will cause a memory leak (whilst testing, I almost hit my swap file limit before noticing this). If there's a way around it, I don't know it - I don't 'do' VB.

    Mike

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by Mike
    Quote Originally Posted by Twey
    I'm sorry, it really is literally impossible. There may be some odd Windows- or IE-only way of doing it
    It wouldn't be impossible then, would it.
    Yeah, that struck me just after I posted it "Impossible to do reliably," I should have said.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    We had a similar need and ended up building an ActiveX control to make it happen.

    So not impossible, but extremely difficult.

    Adminica

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •