Get image from local file system for printing

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Get image from local file system for printing

    If a user clicks Print, I would like to be able to print the stationery header
    if the user wants to print on plain paper. Can I pick up the image from the
    users local file system and add it directly to the print send object? Prior to
    this the user would simply upload the location of the image to the remote
    server where the swf resides, or do I have to ask him to upload the image
    itself and then download it again every time he uses the program?

    Doug

    doug777 Guest

  2. Similar Questions and Discussions

    1. Printing to local printer
      I have developed a web page using VB.net which prints data from a MSSQL database. I cannot figure out how to get a list of the local printers for...
    2. Problem with local file and local link
      Hi to everybody, I have installed a new version of flash player (9,0,28,0) and when I open a local file like: c:\test\index.html When I click...
    3. Read local file system from Flex2 app
      Is it possible to read local file systems from a Flex2 app by changing some security settings? If yes, which ActionScript Class/methods can be used...
    4. flv playback works on local system, not on web server
      I am hoping someone has a quick answer to this question, many thanks in advance. I am using the new component flvplayer that comes with Flash 8 and...
    5. Problems printing a Quark file with an illustrator placed image
      Hi Sometimes I have problems printing from Quark Xpres passport on my laserwriter, if there is a placed Illustrator 11 eps file. After I print the...
  3. #2

    Default Re: Get image from local file system for printing

    I can think of two possible solutions (2nd one is what you have mentioned).

    1. User can trust the SWF which would allow it load local files.

    2. Ask user to upload it once and start using it. I hope browser cache would
    help in preventing the download every time.



    Sreenivas R Guest

  4. #3

    Default Re: Get image from local file system for printing

    What does the user have to do to make his computer trust the swf? Or is it something I have to do in the swf?

    Doug
    doug777 Guest

  5. #4

    Default Re: Get image from local file system for printing

    Here is a snippet from the Flex 2 user guide about urlloader:

    When using this method, consider the Adobe? Flash? Player security model:

    For Flash Player 8 and later:

    Data loading is not allowed if the calling SWF file is in the
    local-with-file-system sandbox and the target resource is from a network
    sandbox.
    Data loading is also not allowed if the calling SWF file is from a network
    sandbox and the target resource is local.

    As far as I know there is no way for a user to "trust" an swf file. This is
    not like an activeX control.




    JKohn99 Guest

  6. #5

    Default Re: Get image from local file system for printing

    OK thanks. So from a browser I have to upload and then download each time
    (because I've set no-cache in the cf application file for a different purpose).

    Does anyone know if this problem can be overcome by the user choosing to use a
    version of my program that would work with AIR?

    Doug

    doug777 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