Printing reports in MS Access from a C# Windows app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt Sogla

    Printing reports in MS Access from a C# Windows app

    I was wondering if it is possible to take a canned report ( on an
    Access database (Access XP version), and then be able to write a C#
    application that will make a call to the canned report in Access and
    print it (just as you would print the report while in Access)? If so,
    could you give me an example so I could follow the syntax. Printing
    from a C# application isn't as graceful as going into Access and just
    running the report and printing it. Any ideas on how to make this
    work so the users don't have to learn how to open the report in Access
    and print it? Just trying to make users lives simpler.
  • Tom van Stiphout

    #2
    Re: Printing reports in MS Access from a C# Windows app

    On 25 Nov 2003 15:05:40 -0800, mjsogla@hotmail .com (Matt Sogla) wrote:

    Use Automation.
    Create an Access.Applicat ion object. Then Application.DoC md.OpenReport
    etc to print the report.

    -Tom.

    [color=blue]
    >I was wondering if it is possible to take a canned report ( on an
    >Access database (Access XP version), and then be able to write a C#
    >application that will make a call to the canned report in Access and
    >print it (just as you would print the report while in Access)? If so,
    >could you give me an example so I could follow the syntax. Printing
    >from a C# application isn't as graceful as going into Access and just
    >running the report and printing it. Any ideas on how to make this
    >work so the users don't have to learn how to open the report in Access
    >and print it? Just trying to make users lives simpler.[/color]

    Comment

    • Matt Sogla

      #3
      Re: Printing reports in MS Access from a C# Windows app

      Tom -
      Do you have any examples of this or is there any HELP related topics
      that demonstrate this?

      [color=blue]
      > Use Automation.
      > Create an Access.Applicat ion object. Then Application.DoC md.OpenReport
      > etc to print the report.
      >
      > -Tom.
      >
      >[/color]

      Comment

      Working...