PDA

View Full Version : Publisher Save As Jpeg



hazzer123
05-08-2008, 02:22 PM
Hi

I have a lot of jpegs to save.

Doing it manually would mean clicking save as, choosing jpeg, then typing a name and clicking save for each page.

What vba method can i use to save as a jpeg.

I have seen a save as on the internet but there were no jpeg constants to give as the FileFormat parameter.

Any help?

Ken Puls
05-08-2008, 09:46 PM
Hi hazzer123, and welcome to VBAX.

Try this:
ThisDocument.Pages(1).SaveAsPicture ("c:\temp\temp.jpg")

Hope this helps,

hazzer123
05-09-2008, 03:11 AM
Hi this method looks good.

I am struggling implementing 300dpi into the pbPictureResolution parameter.

Could you post some code with working 300dpi picture saving?

Thanks

Harry