473,396 Members | 2,021 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,396 software developers and data experts.

Dialog Box for Reports

132 100+
I have a form with several buttons on it. Each button will open a seperate report. My question is how can I create a dialog box that will allow the user to send the report to the screen or to a printer?
Aug 20 '07 #1
4 1386
Rabbit
12,516 Expert Mod 8TB
DoCmd.OpenReport "ReportName", acViewNormal
DoCmd.OpenReport "ReportName", acViewPreview

The first one will print, the second will open preview.
Aug 20 '07 #2
Proaccesspro
132 100+
DoCmd.OpenReport "ReportName", acViewNormal
DoCmd.OpenReport "ReportName", acViewPreview

The first one will print, the second will open preview.

I understand the commands needed, it's the dialog box functionality I am not familiar with. Could I just create a form that would appear once the user clicks on a report button that simply has 2 additional buttons on it; a To Screen button and a To Printer button?? I'm thinking this form would appear each time a request is made to print or view a report.....Once the user selects screen or printer, how would I pass the appropriate report name?
Aug 20 '07 #3
hyperpau
184 Expert 100+
I understand the commands needed, it's the dialog box functionality I am not familiar with. Could I just create a form that would appear once the user clicks on a report button that simply has 2 additional buttons on it; a To Screen button and a To Printer button?? I'm thinking this form would appear each time a request is made to print or view a report.....Once the user selects screen or printer, how would I pass the appropriate report name?
you got the answer.

make that button open another form with the two buttons.
make the property setting as pop up =true.
Aug 21 '07 #4
Rabbit
12,516 Expert Mod 8TB
You can pass the report name in the OpenArgs parameter of OpenForm.
Aug 21 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: John Davis | last post by:
Anyone knows how to create the username/password authorization dialog in ASP? Thanks, John
1
by: Teresa B | last post by:
I am going through your Brian Bischof's walkthrough in Chapter 1 of his book Crystal Reports .Net Programming and have come up to a problem. When I load the ReportDocument onto the form I get no...
0
by: Victor Kaiser | last post by:
I am using DoCmd.OutputTo to allow users to save Access reports in snapshot format or other desired formats. Once the user selects the desired format and clicks "OK", a dialog box appears that...
0
by: Dalan | last post by:
The problem to resolve should be pretty easy for someone. I have a main form which contains a combo box to lookup various vendors. Have several reports for the vendors, but it is print all or...
4
by: Das | last post by:
Hi all, I'm using crystal reports for the reporting..... the system is running on more than 10 clients... When show the report in the crystal report viewer & then click the print button. Print...
1
by: M Pearson | last post by:
Hello there all, am very new to asp.net programming and am struggling with this problem. What I trying to achieve. On a button click I want the standard web save as dialog to display. The user...
7
by: TJoker .NET | last post by:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR). My reports get their...
2
by: mounilkadakia | last post by:
I have a CrystalReportViewer(crv) on my form. I also have a dataset (dtsReportData) populated with the required data and i have a ReportDocument (rdReport) object. The data source for the crystal...
1
by: Tomas Martinez | last post by:
Hi, In my web I have a proccess of download reports which on first step generates a PDF, then flushes the buffer (the generated file) and finally deletes this file from server. Ok, the problem...
2
by: Martin Arvidsson, Visual Systems AB | last post by:
Hi! I am constructing a program that will massverify some reports. How ever there is a message dialog comming up saying that the report is up to date or needs change. Is there a way to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.