473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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.
Nov 12 '05 #1
2 4165
On 25 Nov 2003 15:05:40 -0800, mj*****@hotmail.com (Matt Sogla) wrote:

Use Automation.
Create an Access.Application object. Then Application.DoCmd.OpenReport
etc to print the report.

-Tom.

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.


Nov 12 '05 #2
Tom -
Do you have any examples of this or is there any HELP related topics
that demonstrate this?

Use Automation.
Create an Access.Application object. Then Application.DoCmd.OpenReport
etc to print the report.

-Tom.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: AAVF | last post by:
We have a problem that has only started in the last few weeks. We have an Access 2000 database running on a P300 Win98 PC. The PC outputs Access reports to an HP LaserJet 5L printer, connected to...
1
by: Hank Reed | last post by:
For about a year I have been printing pdf files from Access 2000 using the ShellExecute Me.hWnd, "print", FileName, "", 0, SW_SHOWNORMAL We normally print, from 1 to 100 engineering documents in...
1
by: John | last post by:
Hi I am looking into Oki ML 590 and ML 591 printers to see if any of these will work with multi-part (multiple copies) continuous stationery for printing invoices from access. Has anyone had any...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
2
by: Benny | last post by:
Hello Experts, Currently I working on a web application using vs.net with C#. I require to create an invoice to a text file and print the file. I have no problem with writing to the text, but...
0
by: Nigel | last post by:
I successfully create a .NET Component (Visual Basic .NET) that would print, unfortunately when used within a web browser it appears that .NET security doesn't allow you to run code that interacts...
1
by: Stinky Pete | last post by:
Hi, I've been reading, and successfully tested some code referred to in this group, that allows a user to select a printer before printing a report. The code has worked well on single page...
4
by: joel | last post by:
Is there a way (code, plugin, etc.) to output a single Access report as multiple reports? Preferrably, I want to control the output target by data in the record group. The scenario is this: We...
1
by: billelev | last post by:
Here is some code that I have adapted slightly. It allows a report to be printed to a specific location. It works by calling SaveReportAsPDF and specifying the access report name, and the root...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.