🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #2009

Re: Problem Calling Photoshop Through Web Application

#2009
From: Mick_Murphy
Date: Thu, 24 Jun 2004 23:04
5 lines
1636 bytes
Why are you passing docRef to the Open method? All you need is the full file path. Until I saw this code, I didn't even realise that the Open method could take a second argument and looking at the documentation doesn't give much of a clue as to what the second argument is for. I presume it emulates the Open As command. In which case you would need a file type, not a document. Just drop it and this line should work.

Also, as an aside, your code for resizing looks a bit strange. Why are you passing null as the last parameter. This is an enumeration for the resample method with values from 1-6. You don't need to pass null for an optional parameter, just leave it out (same with the mode conversion). Not sure how you get that to compile. I get an error message saying null constant is no longer supported in VB.NET

Also putting values in for both width and height will distort the image (same as turning off constrain proportions) but maybe that is what you want.
Technical Details
Message-ID: <3bb4c35a.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb4c35a.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5839,3a3d4c6c12e7dbe
X-Google-Attributes: gidf5839,public
From: Mick_Murphy@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: Re: Problem Calling Photoshop Through Web Application
Message-ID: <3bb4c35a.0@webx.la2eafNXanI>
Date: Thu, 24 Jun 2004 16:04:57 -0700
References: <3bb4c35a.-1@webx.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit