Displaying an InfoMaker sub report - infomaker

I need to display an InfoMaker sub report even when there is no data. The idea is for my customer, who would like to see the header even if there is no data so that they can see that the section has no data. If I hard code the header into the main report, the sub report directly above the "empty" sub report could bleed over and display on top of the hard coded header.
I could set the "Visible" property, but I need the dynamic placement of the header to avoid being overwritten by the preceding (above) sub report.
If any further information is required, please let me know.
Thanks in advance.

Use a decode statement to add a "dummy" value if there are no results.
decode(column, data_you_expect, true_result, false_result)

Related

Creating report based on input form in MS Access

I am currently developing a database to monitor my employees' work. Yet, MS Access is new to me and I encounter a fundamental problem when creating reports.
I wish the system can generate reports based on the values of an input form. Say, I would like to check Peter's work in January, I could simply enter:
Name: Peter
Month: January
Then the Access would be able to generate a corresponding report. But I am not sure how it works. And I am thinking of three possible approaches.
(1) Input form -> Query -> Report
I look up youtube and learn how to build an Access form that passes a parameter value to a query. And then I can click the Create Report button.
(2) Input form -> Report
Not sure it works or not. But I learned a bit VBA which may be helpful in this case.
(3) Export to Excel
Export to Excel might be a good option. I can use various functions and filters to select the information I want.
Sorry that my question is being abstract. Any help is appreciated.
there are many ways you could achieve this.
One way (it may be the most efficient or not depending on your query / data you need to output in the report).
Build the query.
Build a report with its record source based on the query.
Build a form with input controls and a button.
With the button you are going to open the report. In the open statement of the report you are going to specify the controls as filters to some of the fields retrieved by the query.
Example:
Private Sub POrdine_Click()
On Error GoTo Err_POrdine_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "EmployeeWork"
stLinkCriteria="EmployeeCode=" & Forms![frmNameOfForm]![cboEmployeeCode] & " AND WorkMonth=" & Forms![frmNameOfForm]![cboWorkMonth]
DoCmd.OpenReport stDocName, , , stLinkCriteria
Exit_POrdine_Click:
Exit Sub
Am assuming the two comboboxes are going to pass a numerical value, the employee code (which would be a primary key) and the value of the month. Build the queries that feed these controls so that you may see the employee name and the month name. If in doubt just ask.
Notice how this approach may not work well for reports based on large amounts of data.

Can Excel 2013 print different PrintTitleRows to each page?

I may be trying to do the impossible. What I need is to dynamically set the PrintTitleRows for each printed page in Excel. My worksheet is created dynamically and there are multiple (yet similar) sections of different row lengths and I want to show the section name and description titles on the top of the following page if the section overflows to multiple pages. The section names will not always be the same though the column titles will. The section name is on the row above the description titles.
Section name and description titles
Currently, I am calling my PageSettings sub and then executing the ExportAsFixedFormat, so I am guessing this can't be done.
I have spent the last few hours searching the Microsoft site, Stackoverflow.com and the web in general with no questions or hits related to this question.
Thanks in advance for any insight you may have.
The answer in no and is based on my experience. The PrintTitleRows and PrintTitleColumns are a one time setting which I did in my PageSettings sub. Once ExportAsFixedFormat starts running, it never hits the PageSettings sub again.
PrintTitleRows is a one time setting that places the same row (or rows) at the top of every printed page but I needed different rows.
The best I found way to achieve this is to add the necessary rows to the worksheet after each page break to make the report look the way I want when printed. I then hide these header rows from the user and display them when I print.

conditionally rendered columns Cognos

I have a report that I developed that utilizes render variables as described here - http://www.ibm.com/developerworks/data/library/cognos/reporting/dynamic_report_design/page570.html
The report for some reason still renders the column header without the data below when its exported to Excel. If I view in HTML, it renders appropriately but the HTML includes every single column header.
What am i doing wrong?
Check "Making the Query Items Dynamic" #4 from that document. Looks like you miss it
When you are applying the Render Variable, make sure you are selecting the 'List Column' not the 'List Column Body'. Look into the attached screenshot to see how to select the complete List Column when applying the Render Variable.
I'm not sure why this technique wouldn't work when exported but as a workaround, you could try applying the render variable independently to the column and its header.

How to create two pair of page header and details in crystal report

I'm new beginner in crystal reports and I know the basics of it.
I just create a report with one page header section and one detail section.
My concern now is how to create a pair of page header and detail.
When I adding a new detail section it just going to be a nested details section.
I want a output just like this:
-Page Header 1
--Detail 1
-Page Header 2
--Detail 2
Please help.
Thanks in advance
Use sub reports.
In one main report take 2 sub reports... one pair in one sub report and second pair in 2nd sub report

Cognos Report Studio - avoid Page break in Excel export?

I'm working on a report in Cognos 10 which is only composed by a list. When I export to Excel and print the report, it breaks a row of the list through pages.
I've already modified the pagination properties of the list with any result..
So, my question is, is there any way to avoid the row break through pages?
Also I would like to ask if somebody know a way to set a header and footers that appears in all pages.
Thanks in advance.
please see this IBM doc: http://www-01.ibm.com/support/docview.wss?uid=swg21419957
You can have your administrator change a parameter which will enable a single sheet export.
Just setting the "Rows per page" property of the list to a maximum value should work.
In case of List, set the Rows Per Page property to blank.
To enable the page header, go to List Headers & Footers and enable the List Page Header.

Resources