Friday, March 30, 2012
how to format this layout?
I have to incorporate a subreport into my main report. if my main report shows state, county, city and my subreport shows county and school name. how can I show just the schools that are in that county.
my question is how can I apply a condition to show schools in the subreport where county name (subreport ) = county name (main report) ?
attached is an image of the layout.
I know it's probably easy but I'm new to Crystal.
thank youYou can link the subreport with the main report. Right-click on sub-report and select 'Change Sub-report links' option. In the Link window,select the 'County Name' field from the Main report. Select the checkbox 'Select Data in Subreport based on field'.
Hope it helps !!!
Rashmi|||yup that was it .thank you very much
Monday, March 26, 2012
how to fixed the size of the report and landscape view state?
Good day.
How to make or fixed the size of the templates? and how to make the report in landscape mode? i have make a layout in the landscape mode but the priblem in print preview it is not in the landscape mode.
thanks your help is greatly appreciated
Check the width and height property of the "Report" and "Page". Both should be proper, for your report to print (preview) in landscape.|||thanks rajeeb
but there's a way to make it fixed landscape view. Coz when previewing in the Web form its ok coz the layout of the report is in the landscape but when you export it example in the PDF file it will not set in landscape mode.
thanks
|||If your widht and height property have proper values and you can view the report in landscape mode, then the export to pdf will also not be a problem.
I have used it, no issues, though I export to PDF using Render method of the ReportViewer control, which is same as what you are trying to do.
how to fix report layout problems
When you use Report designer in the BI development studio, on the Preview tab, you can have a straight preview or a print layout preview. I suppose what you see in the print layout preview is what you get when you print the report or export the report to the other format.
However, often you see everything looks perfect in a straight preview but does look right in the print layout preview. For example, you might get the following problems in the print layout preview, even if everything looks perfect in a straight preview.
· Every even page is a blank page
· Items that should be together on the same page are separated into different pages. For example, on the first page, I had a TextBox1 followed by Image1 then followed by TextBox2. Both textboxes have constant (static) values, and Image1 holds a jpg image. Strangely enough, when I do print layout preview, I saw both textboxes and blank space in-between on the first page, and then saw the image on the second page. No matter how I adjust and what I adjust (position, size, bring to front, send to back, ... etc), I just could not get them into the same page, and I have no clue why.
Can anyone provide some suggestions, advices, experience, knowledge, or pointers?
Where and what elements should I look into to fix the layout problems stated above?
Thanks in advance.
Chris in Toronto
Hi There,
It's probably a problem with page width. Your report is too wide to fit on a single page, and so the right hand edge will be carved off into a new page, hene every other page is blank or your data is split across pages.
The report should be something like 21cm by 29.7cm (sorry, I can't remember the inch equivalents). And the body should be about 18cm wide. (at least these measurements certainly fit on a sheet of A4 in one of my reports).
Cheers - Andrew.|||
I have already considered the page width.
No matter how I adjust the page width, it does not fix the two problems that I described.
Thanks anyway.
|||When you looked at the page width vs. body width, did you consider the size of the margins? This blog article might help:
http://blogs.msdn.com/chrisbal/archive/2006/08/10/694892.aspx
This situation is the only one I'm aware of that will reliably cause every other page to be blank in physical page layout renderers.
-Chris