HOW CAN I SET THE GENERATE IMAGE IN MEMORY FEATURE PROGRAMMATICALLY IN A VB.NET PROJECT?
You can use the EnableGenerateImageInMemory method of the BlackIceDevmode.ocx. The method has only one parameter: a handle to the devmode structure. You can get the handle to the devmode structure by loading the devmode using the LoadBlackIceDevmode method.
Not all file formats support the Generate Image in Memory feature. Only TIF, BMP and EMF files can be generated in memory. So if another file type is set (for example JPG) in the printing preferences, you won’t be able to enable the Generate Image in Memory feature. When you call the SaveBlackIceDEVMODE method, the method doesn’t save any invalid settings (in this case the Generate Image in Memory is invalid, because the JPG doesn’t support it). But you can programmatically change the file format with the SetFileFormat method.