Render blank page in report
Hi,
I am designing a report that displays page number in page footer. The report only has 4 data rows that spans half a page. When I export the report in Excel format, two pages are created with page one has data and blank footer and page two has no data and "Page 1 of 1" in footer. If there is only one page of data, why are two pages rendered? How come page one has blank footer and page 2 has incorrect page number?
Thanks.
Hi,
While exporting it to excel format you get option for exporting.
In page range section specify only one page and check it.
There is an option export page header and footer you can specify either for once per report or
Once per page Try this and let me know the result.
Hope this helps you.
Regards,
Neo.
Similar Messages
-
HOW TO ELIMINATE BLANK PAGES IN REPORTS?
Sep 11, 2002 13:07 PT
I'am having troubles with reports, i have design a report that has 2 sql, so there are 2 layouts in the report, the first one has many columns so I put it in 2 pages wide but the second sql is only four columns, so it is in just 1 page wide, my problem is when the report is printed the first pages are printed but when the data from the second sql begins i have one page printed then one left blank, the check box that indicates blank pages is uncheked, but the blank pages still remain printed, if anybody has the solution please let me know
tnx
pd. I'm working with report builder 6.0.8.12.1Use the commandline parameter BLANKPAGES=NO. This will suppress blank pages when you generate to file and print.
-Siva B -
Blank page in report o/p and o/p notprinted when contains multiple pages
Dear Friends,
I am facing couple of issues while modifying an existing report
1. First page of the report is Blank
2. Report output is not printed when the output contains multiple pages.
Currently, along with the data, the report prints the output format in the first page and some totals in the last page.
The requirement is that we do not want these first and last pages.
For this, i made the following modifications to the report.
In the Layout Model,
*1. Under the body of Header section, we have a repeating frame which is printing the output format that comes out as report first page.*
Both Horizontal and Vertical Elasticity are set to Fixed and below is the code in the format trigger on this repeating frame.
function R_HEADER_PAGESFormatTrigger return boolean is
begin
if :p_header_pages = 0
then return(false);
else return(true);
end if; return (TRUE);
end;I modified this format trigger to always return false as shown below
begin
return false; --statement added by me
if :p_header_pages = 0
then return(false);
else return(true);
end if; return (TRUE);
end;*2. Under the Body of Trailer section, we have a main frame which prints summary information.*
Both Horizontal and Vertical Elasticity are set to Fixed and below is the contents of the Format trigger on this frame
function M_CONTROL_GRPFRFormatTrigger return boolean is
begin
if :report_term_count > 0
then return(true);
else return(false);
end if; return (TRUE);
end; I have modified this trigger to always return False as shown below
function M_CONTROL_GRPFRFormatTrigger return boolean is
begin
return false; --statement added by me
if :report_term_count > 0
then return(true);
else return(false);
end if; return (TRUE);
end;When i run the report after doing these modifications, i am facing the above mentioned problems.
Any idea on why a blank page is coming out before the actual data?
Also when the report output contains multiple pages, the output is not printed. Any idea on this?
Regards,
Sreekanth
Edited by: Sreekanth Munagala on Mar 23, 2012 1:15 AM
Edited by: Sreekanth Munagala on Mar 23, 2012 1:18 AMHi InoL,
I have tried by setting vertical elasticity to variable but the blank plage is still coming in the output.
Also, i am just wondering that blank page is not shown for the trailer page even though the Horizontal and Vertical Elasticty is set to Fixed.
Could you please let me know if you have any idea on this?
+InoL Wrote:+
+And this didn't happen before you made the changes to the format triggers?+ Sorry for not mentioning that this happens when i delete the entire fields and frames in Header section.
Setting the Vertical Elasticy of Header to False and returning false in Format trigger still prints the blank page in addition to the actual data pages.
I have also tried setting the option BLANKPAGES=NO in the concurrent program execution options but still the blank page is not suppressed.
Regards,
Sreekanth
Edited by: Sreekanth Munagala on Mar 25, 2012 8:33 PM -
Insert blank page into report after odd page
I'm trying to get my report to insert a blank page at the end of each invoice if the invoice is an odd number of pages. We're looking to start printing two-sided invoices and need each invoice to be able to be mailed to the customer. I already have New Page after on the report footer and that works, but if I have a 3 page invoice, I need it to have a blank page as page 4 (without a page number). Page numbers are also being reset for each invoice if that matters. This is using Crystal Reports 10.
Hi
You can try the below:
- Open section expert.
- Select the section after which you need a new page.
- Click on Paging Tab.
- Put the below formula in X-2 for New page after:
PageNumber mod 2 =0;
- Save and close the formula editor.
- Click on Ok.
You can also apply some suppresion condition as per requirement.
Hope this helps!!
Regards
Sourashree -
In my report designer, I have two sections. In the last row of section 1, I have a "page break after" checked. And in section 2 first row, I have "page break before" checked. Due to this I am getting a blank page between section 1 and 2. However, if I remove the "page break before" from section 2, it tries to print both sections on the same page. How can I remove the blank page without messing the report?
Thanks for responding, Jonathan.
Is the same runtime installed on the 64 bit system? I notice from your version number that you do not have any service packs installed on the dev system. SP 2 is out and may help.
I have installed SP1 and SP2 this morning, resaved the report file and tried again but the same problem remains.
I'm not sure how to answer your runtime question. I am using the same application built with the same merge modules on both the dev machine and the production server. Of course, the dev machine has the additional complication of having Crystal Reports 2008 installed. Perhaps this is causing the difference?
Compare the printer settings between the two systems. Try installing the same printer driver on the 64 bit system.
Perhaps I am misinterpreting your suggestion, but I am not printing the invoices. I am only exporting them to PDF. It is the PDF that has the extra page. Is there a 'print to PDF' driver of some sort that I need?
Also, was the .NET application compiled as 32 bit, or Any CPU? Whichever it was, try switching it then recompiling to see if that helps.
I tried switching to Any CPU but this caused the Crystal Reports module not to load at all on the 64bit Windows server.
Thank you for your suggestions, but my problem remains. Is it worth trying with the redistributable msi rather than using the merge modules? If so, could you recommend which one I should use? I am using Visual Studio 2008 Professional. -
I created an application in VB.NET 2010 that launches a report in CR2010.
In VS2010 when launching the report displays fine but on the distribution server (Windows 2008 R2, Web Edition 64-bit with IIS 7), the report is displayed with a blank page. I installed the 64bit runtime package (CRforVS_redist_install_64bit_13_0.zip). This is the code that runs the report:
Dim objReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim ConInfo As New CrystalDecisions.Shared.TableLogOnInfo()
Dim mySubRepDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim MyCon As New ConnectionInfo()
Dim param As List(Of ParametroFormula) = Me.ParametriStampa
Dim myTableLogonInfo As New TableLogOnInfo
Dim mySubReport As ReportDocument
Try
objReport.Load(Me.PathNomeReport)
If Me.NomeFileXML <> String.Empty Then
For Each table As Table In objReport.Database.Tables
table.Location = Me.NomeFileXML
Next
For nSub As Short = 0 To objReport.Subreports.Count - 1
For Each table As Table In objReport.Subreports(nSub).Database.Tables
table.Location = Me.NomeFileXML
Next
Next
Else
Dim sqlConn As New SqlConnectionStringBuilder(System.Configuration.ConfigurationManager.ConnectionStrings("ATC_DB").ToString)
With MyCon
.DatabaseName = sqlConn.InitialCatalog
.ServerName = sqlConn.DataSource
.UserID = sqlConn.UserID
.Password = sqlConn.Password
End With
For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In objReport.Database.Tables
myTableLogonInfo = myTable.LogOnInfo
myTableLogonInfo.ConnectionInfo = MyCon
myTable.ApplyLogOnInfo(myTableLogonInfo)
Next
For nSub As Short = 0 To objReport.Subreports.Count - 1
For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In objReport.Subreports(nSub).Database.Tables
myTableLogonInfo = myTable.LogOnInfo
myTableLogonInfo.ConnectionInfo = MyCon
myTable.ApplyLogOnInfo(myTableLogonInfo)
Next
Next
End If
If param IsNot Nothing Then
Dim par As List(Of ParametroFormula) = (From e In param
Where e.isParameter = True
Select e).ToList
Dim form As List(Of ParametroFormula) = (From e In param
Where e.isParameter = False
Select e).ToList
Dim nPar As Short = 0
For Each p As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition In objReport.DataDefinition.ParameterFields
If p.ParameterType = ParameterType.StoreProcedureParameter Then
objReport.SetParameterValue(p.Name, par(nPar).Valore)
nPar += 1
End If
Next
For nSub As Short = 0 To objReport.Subreports.Count - 1
mySubReport = objReport.OpenSubreport(objReport.Subreports(nSub).Name)
nPar = 0
For Each p As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition In mySubReport.DataDefinition.ParameterFields
If p.ParameterType = ParameterType.StoreProcedureParameter Then
objReport.SetParameterValue(p.Name, par(nPar).Valore, mySubReport.Name)
nPar += 1
End If
Next
Next
For Each f As FormulaFieldDefinition In objReport.DataDefinition.FormulaFields
If form.Find(Function(e) e.Nome.ToLower = f.Name.ToLower) IsNot Nothing Then
f.Text = form.Find(Function(e) e.Nome.ToLower = f.Name.ToLower).Valore
End If
Next
For nSub As Short = 0 To objReport.Subreports.Count - 1
For Each f As FormulaFieldDefinition In objReport.Subreports(nSub).DataDefinition.FormulaFields
If form.Find(Function(e) e.Nome.ToLower = f.Name.ToLower) IsNot Nothing Then
f.Text = form.Find(Function(e) e.Nome.ToLower = f.Name).Valore
End If
Next
Next
End If
'If there is a selection formula passed to this function then use that
If selectionFormula.Length > 0 Then
objReport.RecordSelectionFormula = selectionFormula
End If
'Re setting control
CrystalReportViewer1.ReportSource = Nothing
'Set the current report object to report.
CrystalReportViewer1.ReportSource = objReport
Return True
Catch ex As System.Exception
File.AppendAllText(MapPath("~\Log\") + "log.txt", String.Format(" - Errore ViewReport: ", Now.ToShortDateString, Now.ToShortTimeString, ex.Message.Replace("'", " "), vbCrLf))
MessaggioLabel.Text = "Impossibile visualizzare il report"
Return False
End Try
Thanks.
Edited by: GCriscuolo on Jan 19, 2011 6:42 PM
Edited by: GCriscuolo on Jan 19, 2011 6:43 PMThe BusinessObjects.Licensing.KeycodeDecoder.dll issue is well documented in these forums as well as the Kbase and is of no consequence here, or with any other issue.
I think language issues are getting in the way on us here as we are interpreting your description quite differently than what you are trying to say. At this point in time, I am not suer if you are even seeing the viewer(?). E.g.; do you at least get the viewer toolbar?
I'd recommend looking at a web sample app or two, deploying one of these and see how it works. Deploying a web app that uses a viewer as well as one that does not use a viewer may be a good idea. Samples can be downloaded from here;
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
Looking at the following two articles may also help;
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a
While the issues described in the above articles are not identical to what you are experiencing, it will give you an idea on how the CR viewer behaves and how it needs to be configured (particularly pay attention to non default web site setup). The articles also do not cover CRVS2010, but as you will see from reading the articles, the pattern is pretty self explanatory - no matter the version of CR.
- Ludek -
How to remove blank pages from report
Hi All
i have a condition where i have to display the record only when trxn lines are available for that record ,inside my for each group condition i put the if condition having a count variable so if count is not zero then only the record will be displayed ,it works but problem is it shows blank pages for those records.
any clue would be very helpful.Thanks in advance
Thanks
PratapHi All
The solution of this issue is given in below mentioned thread
How to avoid blank page in BI Publisher
Thanks a lot to Vestrini :)
Thanks
Pratap -
Blank first page in reporting services
I have an SSRS 2008R2 report that displays a blank page in Report Manager but not in the PDF export. I have tried all of the online solutions I have seen but still haven't found the cause. About my setup is I have one rectangle overlapping
3 tablixes. I understand that I really need to have these 3 tablices contained within this rectangle, but I can't figure out how to do this for already existing tablices. Is this possible? And is this the cause of the extra blank page?
Ryan DHi ironryan77,
According to your description, you get an extra blank page in your report when viewing in Report Manager. But it works properly when exporting into PDF file. Right?
In this scenario, how does your report looks like in SSDT(developing environment)? Please check if you add any page break before the rectangle. Also please check a page size of the report. Make sure "Page Width >= Body Width + Left Margin +
Right Margin".
I have also seen this kind of strange issue, please see a similar thread below:
http://social.technet.microsoft.com/Forums/en-US/a3633629-74dd-437d-bec9-131285f83f35/report-viewer-shows-blank-page-but-the-blank-page-is-skipped-when-exported-to-pdf?forum=sqlreportingservices
If possible, please share some screenshots about the report design and report view in Report Manager and PDF. That may help us figure out the reason. Thanks.
Best Regards,
Simon Hou -
Report Output in PDF using htmldb_example.xslt yields blank page; commas
I am able to generate a PDF file from a given region using FOP (Formatting Objects Processor). The file that is produced in the Adobe reader produces a nice report with a header and footer region. However, there is always a blank page (containing the header and footer information only). Also, the report produced contains mixed data (text, dates MM-MON-RR and numbers (1.00 3.00 named Hours and Days) and totals. For certain reports, the total lines for the 2 number columns could get into the thousands (1,996.54 284.52). When the comma in the number is introduced, the total row will no longer align with the detail rows.
I know that htmldb_example.xslt is only an example, but has anybody experienced this behavior?
Of note, the example file "hr_employees.pdf" that is downloaded from Oracle also has a blank page.Code changed in htmldb_example.xslt to fix comma/number format and extra page:
<!--Some FOP processers require a block element within a table cell to render correctly-->
<fo:block font-size="8pt">
<xsl:choose>
<xsl:when test=".=translate(.,translate(.,'0123456789+-,.',''),'')">
<xsl:attribute name="text-align">end</xsl:attribute>
</xsl:when>
<xsl:when test="string(number(.))='NaN'">
<xsl:attribute name="text-align">start</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="text-align">end</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="."/>
</fo:block
Page break code, before:
<fo:table break-after="page" font-family="Helvetica">
after, (no extra page):
<fo:table font-family="Helvetica">
<!--break-after="page" causes page break after the report ends--> -
How to remove blank pages from WebI Report in view page layout option
Hi,
I am working in Business Objects XIR2 environment. I have a WebI report with several sections. I need to show the report as a book with 69 sections (each section on new page). there are 69 sections on cost center and each cost center section has almost 10 sections embedded in it. When i see in regular view - I only see 69 pages but when I try to see in "View Page Lay out" option, there is one blank page added after each results page.
Please let me know how to remove this blank page. I need to give users the option to download the book as PDF on to their machine. Now, when I download to my machine, I see one blank page after each results page.
Thanks in advance.Jus convert your report in Page Layout mode and see if your first pafe is getting expand in the second page.
Now check if there are any cell going into second page.
- if there are any blank cell which is there after table.
you have to check formating very carefull. -
The report engine add a blank page at the end of report
I have configured a group with the option "New page after" checked. The problem of that seems the engine add a new blank page at final of report. Exists some way for avoid that? Perhaps is possible add a formula for don´t allow that when is in the last page?
Regards and many thanks for the help.Many thanks. That works
-
Blank page coming in the Webi Report in a particular tab
Hi,
i have a webi report which uses a two Cross tabs.and it is sectioned by 'Business Segment' object. and 'Group name' object has been used to group the data in each cross tab.it has multiple tabs in the report each named same as the group name used in the cross tab.
so now when i export the report into the PDF document one of the tabs is having a blank page (i.e 2nd page is a blank page off the 4 pages it has). i am using XI R 3 version.
so please suggest me what formatting changes to be done for that particular tab(s) to remove the blank page off the 4 pages.
Immediate suggestion is very helpful.
Thanks & Regards,
Kishore.Hi,
Thanks for your suggestion.however i checked all the cells. everything is well fitted.one more thing is that similar kind of data is visible in other tabs without any issues. so it is happening only in a particular tab.
Any other advanced settings to do to avoid the blank pages in between the PDF document?
Regards,
Kishore. -
REPORT SERVER 6i Patch1 PRINTING BLANK PAGES
I have a problem that is occouring on three different report servers. It will start printing blank pages instead of the report and the only way to get it back to normal is to stop and reastart the service. I get this on a version 6, version 6i and version 6i patch1 report servers. It makes no difference what call method I use (command line or OCX control). I can also force this behavior on one of the servers by selecting a HP 895C as the default printer in the windows printers and then starting the service. All pages print blank after that. At the customers site it appears to be random as to when it will start printing the blank pages.
Any ideas on what the fix is for this?
nullIs there any ideas on this?
We have a Reports 6i server up and running and I'm getting stuff out OK to postscript printers, but some HP older printers are just spitting out blank pages. Is there a desformat= that I need to set differently? I've tried most of the options ( dec, psport, psland, hpl... all blank )
Appreciate any help, I haven't used this stuff long, so am quite naive about how it hangs together.
null -
How to avoid printing a blank page when there is 'no data' in the report.
how to avoid printing a blank page when there is 'no data' in the report.
try like this
if@section:IND=1
this template
end ifsectionbreak
if@section:IND=2
this template
end if -
BI 7.0 Analysis Authorization issue: some reports displaying a blank page.
Hi All,
This is regarding BI 7.0 Analysis Authorization issue.
Overview:
we have restricted some queries at infoobject level.
Issue:
a. For some of the queries, we can see the selection screen but when we try to execute the query by clicking on the execute button (Queries WAD) we get a blank page, meaning nothing is displayed on the output (white/Blank screen).
b. When we execute the same query through RSRT, we get a message which says "Disconnecting from BW server..".
c. Let me explain further on this. Basically we are doing this in order to have limited access to Auditors at the client side. At the same time normal users should not get impacted due to this, hence we created two roles. One for normal users and other for Auditors.
d. Now the thing is that we execute the same report with normal user ID's the report executes properly and displays the output. it does not show the blank page.
e. But when we execute the same report with Auditors ID then we get a blank page.
Any idea why this is so?Hi Neha,
I tried the below also,
GL Acnt
I EQ 0000134010
I EQ :
but still it didn't work.
No Infoobject is missing in Authorization Object.
For your point, "rsecadmin - > analysis -> execute as -> check for the desired user & analyze the log" it didnu2019t allow me to analyze, since as soon as click on execute button a pop-up comes up saying "Disconnecting from the BW server..."
As mentioned earlier also it is giving me the below message,
""I>> Row: 103 Inc: AUTHORITY_02 Prog: CL_RSR_RRK0_AUTHORIZATION RS_EXCEPTION 301CL_RSR_RRK0_AUTHORIZATION AUTHORITY_02"
Kindly suggest, since this is a show-stopper for us!
Thanks,
Ishdeep Kohli.
Maybe you are looking for
-
Hi....I have 1400 odd photos on my iPhone 4 and am running out of memory so I bought extra storage (25GB) on iCloud which I have set up to use. However I'm not familiar with how iCloud works and I don't synch my iPhone with a computer but I want the
-
Is there an easy way to make a long chapter into a book with many chapters?
I have a long, book length text file (50 chapters). It's one file in one ID chapter. I would like to make it 50 files in 50 ID chapters in one book (indb). Can that be easily done? Thanks
-
hello!!i have a problem with adobe muse..i can t open it.i double click and is not opening..i don t think it s a problem from computer because adobe is the only i can t open ..a few hours ago i could open,and now i can t anymore..please help
-
Is is possible for an XControl to inherit properties of a control on its fascade
I am trying to create an XControl that is based on an XYGraph control. The fascade includes an XYGraph control to display data and some buttons to control scaling of the X axis. I want the XControl properties to include most or all of the propertie
-
On starting up gives message "Well, this is embarrasing." can not clear.
When opening the web site I get a message "Well, this is embarrassing. Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page. You can try: * Removing one or more tabs that you think may be ca