Exporting a bmp using a script

Hi, I'm new to scripting in MS and am trying to cycle through the documents of a project and export them to bmp files.

I'm getting an error on "\$doc->Export("C:\\1.bmp");

quote:
Document.Export: Failed to export document to C:\1.bmp.
- Failed to acquire interface {bb5bb84b-ba0a-357a-9b33-a97e426eca2d} (in function/property "Export") at -e line 12.


If I manually export the document to bmp, it works, however the display quality changes a bit, however the script creates no file at all.

Any ideas?