Good day guys,
I work for a retail company and I was tasked to design a pricing list book. I have two columns, but it still just prints as one page. How do I force column two to display as page two?
I am using Access 2013.
Here is the image of what I have and what I want to achieve:
Thanks
Access can't do this automatically, you have to do it manually.
In the page header:
duplicate the "Price List" header above the area where the 2nd column will be (use print preview to fine-tune)
also duplicate the Page textbox:
In the left column, use ="Page " & [Page]*2-1
In the right column, use ="Page " & [Page]*2
So the first physical page will contain "logical pages" 1 & 2, the 2nd page will have 3 & 4 etc.
Related
I need to create a report and export it to .docx that shows the page number and total number of pages in the first page header (e.g. "1 of 5") and only show the page number in the header for all other pages (e.g. "2", "3").
What I've tried so far
Creating 2 text boxes in the header and setting their visibility to "=Globals!PageNumber=1" and "=not Globals!PageNumber=1" or "=Globals!OverallPageNumber=1" and "=not Globals!OverallPageNumber=1".
Both text boxes either exist on all pages or don't exist at all.
Setting the header to not print on the first page, adding only the page number to the header and adding a text box with the expression code.PageNumber & " of " & code.TotalPages to the top of the report body and adding
Function PageNumber() As String
Return Me.Report.Globals!PageNumber.ToString()
End Function
Function TotalPages() As String
Return Me.Report.Globals!TotalPages.ToString()
End Function
to report code, because you can't use global variables in report body. But the text box in the body always shows "1 of 1" no matter how many pages there are.
Is there something I did wrong in my attempts that I don;t understand?
Is there another way of achieving the result I need?
I'm not sure which version of ssrs I'm using but solutions that work with any version would help me a lot.
Add your header then add a textbox to the header and set the expression to this.
="Page " &
Globals!PageNumber &
IIF(Globals!PageNumber = 1,
" of " & Globals!TotalPages,
"")
This will show "Page 1 of 5" on the first page and then just "Page 2" etc on subsequent pages.
I have inserted a page header and added a textbox with the expression =ReportItems!co_MainContact.value. This is the address that I want repeated in each page. For some reason, the address is printed on the first page, but not in the next few pages. Is there a reason why this data doesn't show up? I have a logo and a title in the header page and they're showing up in subsequent pages.
The co_MainContact expression is:
=Fields!co_Address1.Value & vbcrlf + Fields!co_City.Value & ", " & Lookup(Fields!co_ProvinceId.Value,Fields!pc_id.Value, Fields!pc_ProvCode.Value, "Province") & ", "& Fields!co_PostalCode.Value & vbcrlf & "Voice: "&Fields!co_MainContact.Value + " Fax: "& Fields!co_FaxNumber.Value & vbcrlf & "Toll Free: "&Fields!co_PhoneNumber.Value
Report Header properties are default settings and I'm using MS report builder 15.0.19440.0
Without seeing your full report design it's hard to say, if this does not help, please post a screen shot of your full report design, include all grouping as this is usually an important factor.
I would guess you are referencing a textbox that only appears on the first page. References to ReportItems don't work in the same way as referencing Fields.
So I would think you have a few options...
Option 1: Change the header expression
Change the expression in the header to be similar to the expression of the co_MainContact textbox but specify the scope as the dataset.
something like
=FIRST(Fields!co_Address1.Value, "myDataSetName") & vbcrlf + FIRST(Fields!co_City.Value , "myDataSetName") & .... etc... etc
NOTE: the dataset name is case sensitive and must be enclose in quotes.
Option 2: Add a calculated field to your dataset
For a cleaner report you could add a new field to your dataset, either in the dataset query, appending all the relevant columns, or you could add in to the dataset fields as a calculated field (from the dataset properties window).
Either way you will end up with a new column and you can reference that column directly in both the co_MainContact textbox (simply =Fields!myNewAddressColumn.Value) and also in your header. For the header you would use something like =FIRST(Fields!myNewAddressColumn.Value, "myDataSetName")
Hopefully one of these options will do the trick, if not post as much as you can, especially the report design.
I have, what I think is a pretty simple table in Report Builder 3.0. I have team & salesperson grouped by team in the far left column (row headers) and I want those to repeat when the report is multiple pages. I've tried what this article suggests: http://msdn.microsoft.com/en-us/library/dd207045.aspx but it doesn't seem to work. I have a sales amount and a goal in the table with various departments grouped in my headers.
How do I get the row headers to repeat?
Can you check the property values of the corresponding static rows(header related)..to do this you can click on the arrow pointed downwards in the bottom right..select the "Advanced mode" which opens the strows..select the corrsponding static header row under "Row Groups" in bottom left of report builder..Check if the "RepeatOnNewPAge" to true and "Keep With group" to After..Change the values if they are not ..You can go through the following link
http://vbcity.com/blogs/xtab/archive/2010/06/14/what-to-do-when-the-repeatcolumnheaders-property-in-a-tablix-isn-t-working.aspx
I am making a very simple report in SSRS. I am trying to do the following:
On page 1 display following text
THIS IS PAGE 1
On page 2 display following text
THIS IS PAGE 2
I added "Text" field in my report in which I have set the value field to "THIS IS PAGE 1". But I can't find any option to add page break after it. How do I give page break?
I am not sure what is the purpose of having Page Break for you without any content..
but still i tried by adding a table on a report with one column and hide that and it works
Step 1
Create a DataSet with query (commandtext)
Select 'A' AS GRP
UNION
Select 'B' AS GRP
Step 2
Insert a table & set DataSetName as created in step1
Step 3
Click on Table Group & press F4 to Set Page Break Properties value,
Set BreakLocation to Between & PageName to =Fields!GRP.Value (See screenshot for your Ref)
Step 4
From above Step you will see report break into 2 page as there are 2 records from query step 1.. Now next step is to Display Page Number for the insert PageHeader
Step 5
Insert Page Header with textbox expression value as
="THIS IS PAGE " & CSTR(Globals!PageNumber)
Last but not least, Hide unexpected table columns (TextBox) as you just want to display Page Number or Page Header
Output of the report will be like
The problem is hard to explain ,
I have an access report with a stacked bar chart to show the percentage fills over time like the one in this example : Click here
The legend for the chart i have is a number followed by the name, for e.g
1-Mango
2-Apple
3-Banana
etc
I want to sort this according to the above format but when i have more than 10 items the 10-Pineapple comes before 1-mango when it should appear after 9-somefruit .
The underlying query for the access report uses a Cross Tab query in which the items are created as
Column heading:[PrefixPriorityNumber]&"-"&[FruitName]
I even used the Sort:Ascending but it still doesnt affect my custom ordering that i wanted to show.
I also tried to google "sorting alpha numeric strings" but this is clearly more than that.Any assistance is appreciated
The problem is you are getting a text sort. You need to format the prefix number.
Column heading: Format([PrefixPriorityNumber], "00") & "-" & [FruitName]
Either use another digit, as Remou suggests (01 instead of 1) or start using letters. A > 9, B > A, etc.