How to get the no of pages in a report?
Hi All,
I have a requirement to get the number of pages in the crystal report.
I found that the following method of IReportSource gives the value.
public int getLastPageNumber(com.crystaldecisions.sdk.occa.report.application.IRequestContext requestContext)
throws java.lang.NullPointerException,
ReportSDKException
But the issue issue is with the paramter requestContext. How can I get this requestContext.
Appreciate your time.
Regards,
Anil Chowdary K
Because of the page on demand feature, by default there is no clean way to get the page number, because each page is generated as requested. To get the total page count, the viewer must render the entire report first. The easiest way to accomplish this is to use the CrystalReportViewer object and call the showLastPage() method, then using the CrystalReportViewer object generate a ViewInfo object, and call the getPageNumber() method.
For more information review the Viewer documentation in our [SDK Library|http://www.sdn.sap.com/irj/sdn/bi-sdklibrary].
Similar Messages
-
How to get the Pdf's page size?
Hi,
Anyone can tell me how to get the pdf's page size with js in acrobat?
Regards
GoldbridgeThe page size will not always necessarily conform to a standard size such as A4 - PDFs can be defined at any abstract size a user wants. Having a function that only output standard sizes would greatly limit its ability, so it was left up to the user to calculate whether or not the returned rectangle is a standard size as that satisfies many more workflows than the opposite method.
-
How to get the number of page by creating OLE microsoft word document
Hihi Experts,
I have generated a word document using ole in sap abap report.
May i know which command can i use to call the word object to get the number of page before closing the word document?
eg. call method of wordobj 'insertpagefield' ? and i need to require the page number in a variable eg. gv_pagenumber for other filtering purposes.
Thanks and Regards,
li Hui
Edited by: lihui lil on Aug 11, 2009 9:35 AM
Edited by: lihui lil on Aug 11, 2009 12:36 PMhi,
use the following code:
CALL METHOD OF gv_selection 'Information' = gv_curpage
EXPORTING
#1 = 3. " get current page number
CALL METHOD OF gv_selection 'TypeText'
EXPORTING
#1 = gv_curpage. "show current page number
CALL METHOD OF gv_selection 'TypeText'
EXPORTING
#1 = ' of '.
CLEAR gv_endpage.
CALL METHOD OF gv_selection 'Information' = gv_endpage
EXPORTING
#1 = 4. "get total page number
CALL METHOD OF gv_selection 'TypeText'
EXPORTING
#1 = gv_endpage. " show total page number
Edited by: VoonHan on Oct 13, 2009 7:35 AM -
How can I get the number of pages of a report?
Hello to everyone, I'm writing a small app that exports a report to PDF (the app is done and everything is ok).
Along with the PDF I need to create an XML file that describes the PDF file properties. One of the properties I need to supply is the number of pages of the PDF file. How can I ask Crystal Reports SDK for the number of pages my ReportDocument is made of?
Best regards
AlessandroHello Alessandro,
I found a Business Objects Note with a possible solution. You can search for Notes yourself by starting at the Business Objects area of this SAP Community Network (SCN) site.
Go to the [Business Objects link|https://www.sdn.sap.com/irj/boc] in the menu bar on SCN.
Then go to the [Support link|https://www.sdn.sap.com/irj/boc/businessobjects-support] in the sub menu for Business Objects.
Now go to the [Business Objects Note link|https://www.sdn.sap.com/irj/boc/businessobjects-notes] in the left side navigation menu.
Finally, click on the [Search Business Objects Notes link|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true] in the middle of the page.
From the Notes Search page click on the Advanced Search link. For your question I searched on these terms - net page number - and added "boj" (without the quotes) in the Component field for Advanced Search. The "boj" component helps limit the search to Business Objects components - like the Crystal Reports .NET SDK.
This search brought up a number of results. The second result looks like it will address your question:
"[SAP Note 1216240|https://bcp.wdf.sap.corp/sap/sapnotes/display/0001216240] - How to retrieve the number of pages from a ReportDocument in VS .NET"
I hope this helps!
Sincerely,
Dan Kelleher -
How to get the coloumns (fields) width in crystal report
hi,
how to get the coloumns width, date(get and set) and page size in crystal report using ras sdk .
thanksThanks
-
How to get the Tax break up in a report??
hello experts
I want to know how to get the Tax break ups In Sales Order Or purchase order under the conditions tab as it is not stored in Database.
And The Text Fields In Miro screen where it is stored In Db and how can i retrieve it ???
How to retrieve Data using fuction Module. from Database??
if possible Plz attach a Code.
hello experts
I want to know how to get the Tax break ups In Sales Order Or purchase order under the conditions tab as it is not stored in Database.
And The Text Fields In Miro screen where it is stored In Db and how can i retrieve it ???
How to retrieve Data using fuction Module. from Database??
if possible Plz attach a Code.
[email protected]
Plz reply as it is urgent
Thanx and Regards
Plz reply as it is urgent
Thanx and RegardsHi
Please try table - KONV
Field Application will be very critical from your report point of view.
Regards
Rajesh
Do reward if useful... -
How to get the number of pages in a PDF file with AcroPDF ActiveX control
Hi,
I am using the AcroPDF ActiveX control provided by Acrobat Reader and Professionals(version 9). I just wonder if I using LoadFile to load a PDF document, how can I know the number of pages in that PDF? I do not find any properites or methods that can do that.
Thanks
AlanHi unk2,
There's no functionality in the Acrobat.com online services to do a character count. But, you could use ExportPDF to convert your PDF file to Word format, and then do your character count in Word.
Please let us know if you need additional assistance.
Best,
Sara -
How to get the number of page which exists the change bar ?
In FDK development, I want to find the number of page which exists the change bar.
zhaopeng,
You can get the page number by querying the FP_PageNum property of the FO_Page object:
pageNum = F_ApiGetInt(docId, pageId, FP_PageNum);
...or you can use FP_PageNumString if you are using string page numbers.
If you do not have the ID of the FO_Page object, you can get it from the paragraph ID using the following function, courtesy of Rick Quatro, posted to the Yahoo Framedev list. Send the paragraph (FO_Pgf) ID as oObj and it will return the page ID:
F_ObjHandleT GetPage(F_ObjHandleT oDoc, F_ObjHandleT oObj)
F_ObjHandleT oFrame = 0;
IntT iObjType;
F_ObjHandleT oRow, oCell;
while(oObj)
oFrame = oObj;
iObjType = F_ApiGetObjectType(oDoc, oObj);
switch(iObjType){
case FO_SubCol:
oObj = F_ApiGetId(oDoc, oObj, FP_ParentTextFrame);
break;
case FO_Tbl:
oRow = F_ApiGetId(oDoc, oObj, FP_FirstRowInTbl);
oCell = F_ApiGetId(oDoc, oRow, FP_FirstCellInRow);
oObj = oCell;
break;
case FO_Row:
oCell = F_ApiGetId(oDoc, oObj, FP_FirstCellInRow);
oObj = oCell;
break;
case FO_Cell:
// handle FO_Pgf case
case FO_Pgf:
// handle FO_AFrame case
case FO_AFrame:
oObj = F_ApiGetId(oDoc, oObj, FP_InTextFrame);
break;
// handle graphic object cases
case FO_TextLine:
case FO_TextFrame:
case FO_UnanchoredFrame:
case FO_Arc:
case FO_Ellipse:
case FO_Group:
case FO_Inset:
case FO_Line:
case FO_Math:
case FO_Polygon:
case FO_Polyline:
case FO_Rectangle:
case FO_RoundRect:
oObj = F_ApiGetId(oDoc, oObj, FP_FrameParent);
break;
default:
// prevents loop if unknown object type is found.
oObj = 0;
break;
if(oFrame){
// Use FP_PageFramePage to get the page identifier of the object.
return (F_ApiGetId(oDoc, oFrame, FP_PageFramePage));
else
return(0);
Russ -
How to get the number of pages when assemble pdf with DDX
Hi,
I have tried to add two bookmarks to one pdf with DDX(in java code),
the first bookmark I shall add to the first page,and the second I shall add to the second page....
the question is:
If the pdf has only one page, I will not add bookmarks to the pdf. so I need to get the pages of pdf before my processing.
but I did not found any APIs in the SDK about it .
Can anyone help me.
thanks.I have solve the problem myself
I use the tag "DocumentInformation" in DDX and get the xml after invoking DDX,
the xml contain the information of document
the sample DDX as:
<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<DocumentInformation source="mergedPDF" result="doc_info.xml" />
</DDX> -
How to get the last revision quote to SSRS report
HI,
My report current result like this
Qoute ID
Revision
Q1
1
Q1
2
Q1
3
Q2
1
Q3
1
I would like to filter if the quote ID is same , only get the last revision quote into report
Qoute ID
Revision
Q1
3
Q2
1
Q3
1
How can i compare the Quote ID and Revision in fetchxml or dataset filter ?
Thank You<fetch distinct='false' mapping='logical' aggregate='true'>
<entity name='Quote'>
<attribute name='revisionnumber' alias='estimatedvalue_max' aggregate='max' />
<attribute name='quotenumber' alias='quoteid' groupby='true' />
</entity>
</fetch>"
Regards, Saad -
How to get the number of rows in a report region
Hi all,
Is there a way to get the number of rows returned in a report region, without issuing an additional "select count(*) from some_table"?
I mean something like the substitution string #ROW_NUM# but for the total rows.
Thanks,
Pedro.http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/ui.htm#CHDDGGEG
For classic report regions, the region footer supports the following substitution strings:#ROWS_FETCHED# shows the number of rows fetched by the Oracle Application Express reporting engine (the page size). You can use these substitution strings to display customized messages to the user. For example:
Fetched #ROWS_FETCHED# rows in #TIMING# seconds.
*#TOTAL_ROWS# displays the total number of rows that satisfy a SQL query used for a report.*
#FIRST_ROW_FETCHED# and #LAST_ROW_FETCHED# display the range of rows displayed. For example:
Row(s) #FIRST_ROW_FETCHED# through #LAST_ROW_FETCHED# of #ROWS_FETCHED# displayed>
Ta,
Trent -
How to get the current cursor position in word report?
I am generating a word report. But I would like to keep the table in one page. However, I did not find the way to do it in labview. Somebody would give me some suggestions? I appreciate a lot.
One way I think I can do is to find the current cursor position. Since I know the table size so I can figure out if the left space in the current page is enough to hold the table. But I do not know how to locate the curent cursor position in word document in labview programmatically. I appreciate any suggestions on this question.
Thanks.Hi,
when you insert data in a word document you have to refer to bookmarks rather than cursor position.
If you are using the Report Generation Toolkit for Office it is explained in the manual chapter 3-1.
See also the example: Generate Report From Template (Word).vi included in the toolkit.
If you aren't using the toolkit, you still have to refer to bookmark as reference points to insert and/or fetch data.
The principle is:
- First create a document in which you insert bookmarks where you wish and save it as a template
- In LV open your template document and insert in it your data referring to bookmarks as insertion points
- At the end save your report with another name, so you still have the template
I hope I have been clear enough, if not just as
k!
Good luck,
Alberto -
How to get the recruitment details in a customised report.
Dear Experts,
We are into developing a report which has to fetch the below.
1.vendor name
2.No. of positions
3.Dept.name
4.amount
5.cost of recruitment
6.Number of advertise ments.
Experts,from where we have to get the above details.
Please advice
V Sai.Thread is closed.
v sai -
How to get the execution time of a Discoverer Report from qpp_stats table
Hello
by reading some threads on this forum I became aware of the information stored in eul5_qpp_stats table. I would like to know if I can use this table to determine the execution time of a worksheet. In particular it looks like the field qs_act_elap_time stores the actual elapsed time of each execution of specific worksheet: am I correct? If so, how is this value computed? What's the unit of measure? I assume it's seconds, but then I've seen that sometimes I get numbers with decimals.
For example I ran a worksheet and it took more than an hour to run, and the value I get in the qs_act_elap_time column is 2218.313.
Assuming the unit of measure was seconds than it would mean approx 37 mins. Is that the actual execution time of the query on the database? I guess the actual execution time on my Discoverer client was longer since some calculations were performed at the client level and not on the database.
I would really appreciate if you could shed some light on this topic.
Thanks and regards
GiovanniThanks a lot Rod for your prompt reply.
I agree with you about the accuracy of the data. Are you aware of any other way to track the execution times of Discoverer reports?
Thanks
Giovanni -
How I get the primary key in a interactive report?
hi,I'm a noob of apex.
I want to get a Interactive report's primary key or rownum,and I try to use the f01...but it doesn't work.
how can I do this.
zlHave a look at: Re: To reference Interactive Report filtered rows in PL/SQL
Maybe you are looking for
-
SAP 64bit Linux application server (Linux on Power) memory config issues
Hello Everyone, Let me give some background. I have been tasked with replacing our AIX6.1 SAP application server with new Linux on Power servers (SLES11SP3) Our current production BW application servers (AIX) are running fine given their current setu
-
AckRequestNotSupported error in IDoc to file scenario
Hi, I have a scenario from IDoc to file adatper, when i try to run this scenario, every thing is ok except there is a error in message monitor. This error is regarding the Acknowledgment("Acknowledgment not possible"), But the ALEAUD IDoc have been s
-
No Sound Device/Playback Device --At the end of my rope
First let me state that I've tried several methods to fix my problem already, and none appear to help or work, I've followed the advice given by several others, and I'm really not sure what I can do at this point. I even bought a new Soundcard thinki
-
Firefox won't run because it 'is already running' I have tried all steps in firefox crashes articles
I had a spectacular crash in Firefox (FF) - Malware or a virus - I think my system is clean now. I removed FF and all FF/Mozilla files, downloaded a new FF. It will not run because: "Close Firefox A copy of Firefox is already open. Only one copy of F
-
I deleted my old email address and one of my notes disappeared. How do I get it back?
I deleted an old email address from my iphone5 and one of my notes from notepad disappeared. How do I get it back?