Hello,
Does anybody know
how can I print the active form in runtime mode?
Any analog of DoCmd.PrintOut acPages, in Access?
Thank you.
Hi Khlebnikov,
I do not know if OI32 has the ability to do this yet, but it can easily be done using the WinAPIs in OI or via a simple C DLL. The reference below shows a simple WinAPI example that could be ported to OI or compiled as a C DLL and used by OI.
I needed to do the same thing from C++ about a year ago, and there were lots of examples on MSDN. I could only find this main example today: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q186736& (It is getting harder to find anything on MSDN now that the results from searches always places .NET results first). This code takes the graphics from a window and stretches it to fit on the whole printer page, but it can easily be modified to keep the aspect ratio or send the output to the OIPI or to a BMP file.
If you do not want to program with the WinAPIs in OI or do not have the ability to create a C DLL, then there may be a simpler way in OI, or maybe someone at Sprezzatura already created a tool for this.
Tony
At the Vegas conference Mary Jean Blink demmed a utility to do what we ex-AREVers would call "Alt-P" functionality. This may very well achieve what is required. We have something similar in train but her's is here now!
World Leaders in all things RevSoft