printing a report in a navigation subform - printing

I have built a database using MS Access 2010, everything is done except for one button that is not working.
I have a main navigation form, that has different tabs, one tab opens another navigation form (secondary nav. form - SNF) inside the main navigation form (MNF). in the SNF there are tabs which open reports that get their data from queries.
the reports, when opened separately, have a print button which works fine when the report are opened directly and not using the forms.
when the reports are opened through the SNF and the print button pressed the printed page has the SNF and the MNF headers and footers which isn't needed and the supposedly 1 page report would be divided to 4 pages. each containing a quarter of the view.
what I am trying to do is have the printing function using the button print only the report inside the SNF without anything outside that reports borders just as it does when the report is opened directly without using the forms.
NOTE:
* The printing button uses the defaut access print function which is implemented using the button wizard.
** Attached is a screenshot of what I get in both cases.

I was having the same issues, where the entire form was being printed instead of the reports that were navigation subforms. I worked around it this way:
VBA:
DoCmd.OpenReport "MY REPORT", acViewPreview
DoCmd.RunCommand acCmdPrint
DoCmd.Close acReport, "MY REPORT"
It's clumsy, but it allows the user to use the print dialogue instead of just using
DoCmd.OpenReport, "MY REPORT", acPrint
and not being given the option choosing a printer, double sided etc.

Related

My Access is duplicating my reports in print preview and creating an excess amount of pages to print

I currently have multiple reports set up in a navigation form. I have a button set up on these reports to show a print preview of the report before printing, however whenever I select to preview the report within the navigation form I get an excess of pages that would like to print with this form. The print preview button works fine outside of the navigation form and only displays one copy of the report. Is there any way to get this print preview button to work properly inside the navigation pane.
The macro is a simple print preview macro. RunMenuCommand Command: PrintPreview

how to make ticket list clear after getting in to it second time from menu button in xamarin forms for ios?

The iOS Application have menu button which contains list of events. In the list there is a event of showing a list. And list can be access directly form the main page by clicking on navigation icon(on navigation bar) for list.
The first time I click on list from menu page it works fine but second time it shows a result from last visit. It appears on the top of the list.
So, I have to remove the result which appear in top of list for second time.
It only happens in iOS. Same code for android doesn't give any problem.

Best way to realize multi page site in Vaadin

I'm working on pretty simple web side that cointains login screen (almost same as in demo presentation, white page with login and password) and main screen with sidebar and navigation bar. How should it be done? My plan is to build main screen using navigation bar, sidebar (just few buttons in layout basicly) and few layouts with content of the webside. On each button click change layout used to create content to another one, for example for Schudele button I'm gonna load layout that contains some tables, for About button plain text. Is it good idea?
So finnaly is should look like this:
init() function decides if user is logged or not and display Login page or Main page, Main Page is builded from modules like navbar, sidebar and content, content depends on sidebar buttons click. I'm right?
Handling it on your own is legit way to start or learn Vaadin. If you have a first grasp of this works out, the most common way to handle such a scenario is the use of the Navigator See the book of Vaadin.
With the Navigator you define Views and give them a name, register them with the Navigator. Then you can navigate your application with the Navigator, it takes care to give you nice ...#!view... URLs so the Users can have bookmarks and navigate your app also e.g. with the back button in the browser.
The Navigator hooks into an event system, where listeners (ViewChangeListener) can react to "before enter" and "leave". The "before enter" can be used to realize auth needs, since they are allowed to object entering a view.

Custom print dialog in VB6

How do I create this custom print dialog and get the values of the red options when the user clicks ok?
The print dialog below is not created manually, the app I took this screenshot from is probably modifying the default print dialog.
The items circled in red is associated with some data found in the app I took the screenshot from.
The class name of this dialog is #32770 (Dialog) which is the same print dialog found in notepad, wordpad, and vb6 common dialog print. So it is clear that it is modifying the dialog, adding controls to it somehow
You could look at Customizing Common Dialog Boxes but don't expect this to be simple from VB6. it is clumsy enough in C++.
You could just create your own dialog Form.
Update:
Perhaps consider using the download in HOW TO: Raise and Control Print Dialog Boxes from Visual Basic?

Open up a pop-up window, select an item and go back to main window in Rails 3.2

Inside a page called Program edit, there will be a button named Select image and as it is clicked, a Pop-up window will open which shows list of images. After selecting an image from the list and click to the Add button, pop-up will close up and selected pictures ID will be passed to main window. It should be available to use at program's params after closing image list popup.
Here is the scenario I would like to have.
Which way should I follow while doing this?
You need a version of responds_to_parent rails plugin. That can do the trick.
I've learnt that I can do it via JavaScript and AJAX. Similar to this: http://snipplr.com/view/7461/get-selected-value/

Resources