Articles in this section
Category / Section

MakeAccess2007 front and create word in WinForms DocIO

1 min read

You can make Access 2007 as front end to create word document by creating COM Interop assemblies and then bind it to the Access2007 form using Macros.

Steps to generate a report from MS-Access:

  • Create a .net library to generate report using DocIO.
  • On the "Application" tab click the "Asembly Information" and make assembly COM-visible as “true"
  • On the "Build" tab check the "Register for COM interop" checkbox (towards the bottom: you may need to scroll down). Also strong name the assembly by signing it.
  • Build the application to generate the signed and interop assemblies.
  • Open Access2007, Now go to VBA editor (Tools->Macros).
  • Include a reference to our created new library. Select "References" on the Visual Basic Editor "Tools" menu
  • Add a new code module. You can do this with the Insert/Module command on the menu. Value can be binded dynamically with a Form and generate the report.
  • Now run the macro to generate a report.
  • Please download the sample from the below link which demonstrates the use of Access2007 database,
    Note:
    • Place the "Data" folder in [C:]. This part of the code is hard coded.
    • Open the Northwind.accdb from the "FinalResult" folder.
    • Enable macros when prompted.
    • Goto Forms and select Form12.
    • Run it and then click "Generate report" to generate the word documents.
    • Browse through the data by navigating and then click generate report for generating reports based on OrderID.

Conclusion

I hope you enjoyed learning about makeAccess2007 front and create word in Winforms DocIO.

You can refer to our WinForms DocIO feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms DocIO documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied