Export to JPG

Hi
I was looking for exporting the ai file to jpg file using the SDK CS4
I was able to export the ai file to jpg file through the plugin based on the some code from the fourms
the issue is i get an html file along with the jpg file when i do a PlayActionEvent
I tried to export from File->Export as jpg where i dont get an html file
I know for sure i have missed some code
i have set AIActionParamValueRef vpb values for FileName, Format, and Extension
error = sAIActionManager->PlayActionEvent(kAIExportDocumentAction,kDialogOff,vpb);
I dont get any error, but along with the jpg the html gets created in the Path i have mention
i just want to omit the HTML file
What are the other settings do i need to set
Thanks
Sri

This exact thing happened to me.  If I recall correctly, the 'parm' part of your value perameter block is probably not set up exactly correctly.  You might have too little or too much information in there byte-wise.  Here's an example of a structure of values that will work for the 'parm' property:
typedef struct
    long quality;
    long kind;
    long scans;
    long antialias;
    AIFixed resolution;
    long colorModel;
    long alwaysTrue;
    long unused[18];
} jpegExportParametersCS4;

Similar Messages

Maybe you are looking for

  • Error while install EBS 11.5.10 on RHEL5 oracle unbreakable linux

    hello i got this error while install EBS and here is the log file 0/appsutil/out/VIS_oracle/templbac/adrundb1.sh setting permissions: 755 setting ownership: applmgr:oinstall Step 0 of 5 Command: /u01/oracle/visdb/9.2.0/temp/VIS_oracle/adrun9i.sh Step

  • HT1338 problems with Mac Book 10.7.5 printing wirelessly with HP Photosmart 6510e.  I must turn off then turn back on for Mac to print.

    HP Photosmart prints with PC, Droid phone but will only print wirelessly with MacBook OX 10.7.5 if I turn off printer and turn it back on.  HP has tried, Belkin (router) has opened all ports, the problem persists.

  • Mountain Lion on Batter Breaks USB/Bluetooth

    Hi: I have a late 2010 model MacBook Pro (i7).  I have done a fresh install of Moutnain Lion on it and it is much faster than Lion.  However, it has introduced a problem.  My laptop usually sits on my desk with AC power and a single USB cable plugged

  • Oracle reports

    Hi I have a proc program that calls oracle reports using ar25run command. Is there any way to pass parameters using a file just like the parfile in exp/imp commands. We are directly calling ar25run followed by the parameters. For eg, ar25run batch=ye

  • 5230 - Software design, lots left to be desired

    I posted this in the wrong place earlier so having to re-post OK? =========== Only had the phone 3 or 4 days and it's a BIG BIG pain. Every time you start the engine up you have to reconnect to the hands free having to go through 5 or 6 different pag