[AccessD] Show a report in a form

Annie Courchesne, cma accma at sympatico.ca
Wed Mar 28 20:20:32 CDT 2007


Hi Gustav,

Thanks for the input.  I will have to try this during the week-end... looks
promising!  I'll let you know.



Annie Courchesne, CMA

-----Message d'origine-----
De : accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] De la part de Gustav Brock
Envoyé : 28 mars 2007 04:52
À : accessd at databaseadvisors.com
Objet : Re: [AccessD] Show a report in a form

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

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com





More information about the AccessD mailing list