[AccessD] Show a report in a form

Gustav Brock Gustav at cactus.dk
Wed Mar 28 03:51:49 CDT 2007


Hi Annie, welcome back!

By this API call:

Public Declare Function SetParent Lib "User32" ( _
  ByVal hWndChild As Long, _
  ByVal hWndNewParent As Long) _
  As Boolean

you can at least move the report (in preview mode) inside the form:

  Call SetParent(Reports("YourReportName").Hwnd, Forms("YourFormName").Hwnd)
or just if in the form's code module:

  Call SetParent(Reports("YourReportName").Hwnd, Me.Hwnd)

Now - haven't tried that - you should be able to position the report as you like.
Note that the report will loose most of it functionality (menu, toolbar, mouseclick, etc.), in fact you can only drag it by the bar, resize it, and click the control buttons including the close button.

/gustav

>>> accma at sympatico.ca 28-03-2007 01:37 >>>
Hi All,

 

It's been a while but I have one question.  Is it possible to show a report
in a subform.  What I want to do is to have a form to show the info on a
customer.  In that form I would like to have a a subform/report to show the
invoices made for that customer.  But instead of seing the invoice in a
form, I would like to see the actual invoice.  Is that even possible?

 

Thanks all!

 

 

Annie Courchesne, CMA




More information about the AccessD mailing list