Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

Something like Access "DoCmd.PrintOut acPages, 1, 4, , 2" (OpenInsight 32-bit Specific)

At 29 OCT 2002 01:57:23AM Khlebnikov Gregory wrote:

Hello,

Does anybody know

how can I print the active form in runtime mode?

Any analog of DoCmd.PrintOut acPages, in Access?

Thank you.


At 29 OCT 2002 05:35PM Tony Splaver wrote:

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 30 OCT 2002 06:50AM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:

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!

The Sprezzatura Group

World Leaders in all things RevSoft

View this thread on the forum...