HI,
I developed a system that allow user to upload PNG file to keep in a server, then when user need it, they can retrieve it back. The problem that i facing now is when a user want to print a PNG image(2500*3300), IE5.x will print it in a few pages. But if i using MS-PhotoEditor to print it, it is OK---fit in one page.

So, i have tried to call PhotoEditor by using PHP like this:
<a href="file://C:/Program Files/Common Files/Microsoft Shared/PhotoEd/PHOTOED.EXE">

it work, but now i cannot pass the filename to PhotoEditor.

But this command work if i run it in windows, not in HTML:
"file://C:/Program Files/Common Files/Microsoft Shared/PhotoEd/PHOTOED.EXE" /p C:/Ivy.gif

After i tested few times, i found that the double-quote(") in the command affect the whole thing. If i put the " in the html link command, the <a> function that called PhotoEditor will not work, but if i remove the ", it work---BUT i cannot pass the filename.

Anyone has faced the same problem b4? Can u share with me how u overcome this problem?
Please feel free to suggest solution for me?

Thankz.

    Ares,

    Why would you even try to choose what photo editor someone uses to print an image? Are you working on an intranet page? That's the only time I can think of something like this having a hope of working. What happens if gasp one of your users isn't on an version MS 'Doze? How 'bout me..... just checked, the PHOTOED.EXE file doesn't exist period on my Win2K box. Am I shite out of luck then? If you really must make it brain-dead for someone to print the on the typical 8 1/2 x 11 sheet of paper, you're going to have to use something like ImageMagik or GD to resize the image before it's sent to the browser. You're much better off telling you users to right-click and save the image to their drive, and print it using whatever software they have available (even if it's only MS Paint) then trying to guess their OS, available software, and path to said software. HTH.

    Geoff A. Virgo

      ya......i working on intranet page, actually is a workflow system that embed images together with the work-order sheet. Something like the Lotus Notes-WorkFlow.

      I have do some research on the related systems, i found that if i put the png image into a pdf file-------it works!!!

      But anyway, still thank for ur advice and suggestion.

      Ares

        i am not sure why you want to call photo editor, but here are my suggestions.

        have you thought about using com on the web page to call the user's application? like word? it can't edit the graph file, but could print it.

        or, you can just call the graphic with the img tag for just printing the image. you mentioned the size is huge. but with the img tag you can use one size fitting for all. this way, you can make sure it will be one page.

          i cannot resize the img because once i change the size, the drawing and values(text) on the img will become blur. The value is very important even one dot.

          But anyway, i found the solution. Using ImagiMagick to convert the PNG img to PDF and use browser to call PDF, then everything solve.

          Kim, thank for your suggestion.

            the previous msg i used a wrong nickname, "boon178"---because i using my brother PC....sorry about that.

            Ares

              Write a Reply...