Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Re: Automatic Printing

    This can be done with adobe reader.

    We use the attached code to automtically print the page and close the document
    when it is opened and the print_now field is set to "Y". The attached code is
    in the page properties, actions, Page Open trigger. This is java script.

    // this logic used for automatic printing

    var h = this.getField("print_now");
    if (h.value == "Y"){
    var pp = this.getPrintParams();
    pp.interactive= pp.constants.interactionLevel.silent;
    this.print(pp);
    getURL(f.value);
    }

    Mdemahy Guest

  2. Similar Questions and Discussions

    1. Automatic Duplex Printing
      Is it possible to embed printing preferences into a PDF? I'm creating an 2 page application that needs to be sent to several other employees at my...
    2. Freehand printing - right margin decreases when printing multiple copies of file.
      I'm using Freehand mx. Everytime I print more than one copy of a file, the right margin decreases. Thus, if I print five or six copies of a file,...
    3. Printing an automatic date
      I am using an IBM ThinkCenter, P4. Have Windows XP. In 5.0 I used the Format tab and set the date field and created a javascript for this message...
    4. Printing Dynamically Insantiated MovieClips (multi-page printing)
      I can create multiple pages with just one prompt with new PrinJob() object in Flash MX2004; but ... .... when I try to addpages which is one...
    5. Printing without showing the printing dialog window
      hey - did you ever figure out a solution to the printing without dialog issue? i'm trying to get around the same problem myself. thanks! -jason
  3. #2

    Default Re: Automatic Printing

    Mdehamy,

    Could you elaborate a bit on your script? specifically, are you exporting
    documents using cfdocument into pdf files and then executing adobe reader to
    auto-print them and then close adobe reader? If so, can it be used with cfloop?
    For instance, I've been trying to write a script that will take a list of
    invoice data each week, print a receipt & check for each invoice onto a printer
    thats executed by the cf scheduler...but I just can't get past that auto-print
    or silent-print roadblock.

    ChrisAmaro Guest

  4. #3

    Default Automatic Printing

    Is it possible to automatically print a page ?
    After I retrieve my desired info from the database, I output the data to the
    screen in a table format.
    But I want to automatically send it to a printer. If I have the ip, printer
    name, domain, etc., is there a tag or command where I can put in one of these
    items to automatically send the output to the printer ?
    I have a javascript print command but there is still intervention and it is
    not automatic and I want it to print automatically.

    trojnfn Guest

  5. #4

    Default Re: Automatic Printing

    Can you call your JavaScript print function from the <BODY>?
    jdeline Guest

  6. #5

    Default Re: Automatic Printing

    All the Javascript print() function does is call the same functionality as if
    you selected File > Print. Meaning you get the Print dialog box, which you need
    to "OK" in order to send the document to the printer. AFAIK there's no way
    around this for security reasons when you're dealing with a client computer.

    cf_menace Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139