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 .
thanks
Thanks
Similar Messages
-
Get the parameter fields defined in crystal report
I am porting my application from crystal 8.5 written in C++ to crystal 2008 in .net.
Here I am not making use of crystal report viewer neither I am creating .rpt in .net code.
I have a set of already created .rpt files.
I have written a function in .net to export the crystal report.
Its a generic function and will be called for multiple crystal reports.
I am passing the parameter values to the report by making use of the following function :
ReportDocument repDoc;
repDoc.SetParameterValue(APPTYPE, strNextToken[0]);
repDoc.SetParameterValue(COMPORROLETYPE, strNextToken[1]);
Similarly I are setting other parameter values.
The problem here is that, all the reports do not have parameter fields defined that I am trying to set.
They may be present for one report and absent for another. In this case , if the report does not have a particular parameter
field, then it gives error on setting parameters and subsequently fails.
Now I want to find out through code what all parameter fields are defined in the report. Then I will only set those
parameter fields?
Please guide how can this be done.
Thanks
SonamNot as trivial as you might think. You will have to loop through all the sections of the report looking for the objects you need. I don't have a code specific to parameters, but looping through al the sections would be something like the code below. But... this will only show you parameters in a section. It will not show you parameters used in a formula, record selection formula, group selection formula, text field or a conditional formula. In order to get those parameters, you's have to parse out each of those objects looking for parameters. And this is probably not an exhaustive list of places to look for a parameter in the report. I get a headache just thinking about this...
Dim crSections As Sections
Dim crSection As Section
Dim crSubreportObject As SubreportObject
'set the crSections object to the current report's sections
crSections = crReportDocument.ReportDefinition.Sections
'loop through all the sections to find all the report objects
For Each crSection In crSections
crReportObjects = crSection.ReportObjects
'loop through all the report objects to find all the subreports
For Each crReportObject In crReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
'you will need to typecast the reportobject to a subreport
'object once you find it (***you'd go to setting the parameter here - or not...)
crSubreportObject = CType(crReportObject, SubreportObject)
'open the subreport object
crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
'set the database and tables objects to work with the subreport
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
Sequence mySequence = myEngine.NewSequence();
mySequence.Name = "myAction";
//Create new step of type Action and set Name
Step mystep = myEngine.NewStep(AdapterKeyNames.DotNetAdapterKeyname, StepTypes.StepType_Action);
mystep.Name = "GetStringObject";
//Obtain the code module from the step
DotNetModule myModule = mystep.Module as DotNetModule;
//Set properties of the module
myModule.SetAssembly(DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File, @"C:\Documents and Settings\My Documents\Visual Studio 2005\Projects\HelperClass\HelperClass\bin\Debug\HelperClass.dll");
myModule.ClassName = "Class1";
myModule.MemberType = DotNetModuleMemberTypes.DotNetMember_GetProperty;
myModule.MemberName = "StringObject";
mySequence.InsertStep(mystep, 0, StepGroups.StepGroup_Setup);
mySequence.Locals.NewSubProperty("StringObject", PropertyValueTypes.PropValType_Reference, false, "", 0);
DotNetParameterDirections reference = mySequence.Locals as DotNetParameterDirections;
mySequence.Locals.GetPropertyObject("StringObject", 0);
myModule.ClassReference = "Locals.StringObject";
myModule.LoadPrototypeFromMetadataToken(385875969, 0);
After this I am not able to proceed.herewith attached documents contain screenshot of teststand file marked red is to be solved. How to define the value field of the return parameters?
Attachments:
HelperClass.cs 1 KB
ex1.gif 2305 KBPlease see my answer to your question on page two of the following forum thread:
Programmatically generating DotNet Steps in TestStand
Manooch H.
National Instruments -
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 overcome the Memory leakage issue in crystal report 2008 SP2 setup.
I have developed the small windows based application tool with help of Visual studio 2008 for identify the memory consumption of crystal report object. It helps to load the crystal report objects in the memory and then released the object from the memory. The tool simply does the u201CLoading and Unloadingu201D the objects in the memory.
The tool will be started once u201CTest_MemoryConsumption.Exeu201D executed. The u201CTest_MemoryConsumption.Exeu201D consumes u201C9768 KBu201D memory before load the crystal report object in memory. It means, 9768 KB is normal memory consumption for run the tool.
Crystal report object initiated by the tool and object help to load the report in memory once the tool initiated the crystal report object. Now u201CTest_MemoryConsumption.Exeu201D consumes u201C34980 KBu201D memory during the crystal report object creation and report load process. The actual memory consumption of crystal report object is 34980u20139768=u201C25212u201DKBu201D.
The memory consumption u201C34980 KBu201D will be continued till the end of the process. The memory consumption will be reduced to u201C34652 KBu201D from u201C34980 KBu201D once report load process completed. It means, u201C328 KBu201D memory only released from the memory consumption. Tool enables the Release command for the crystal report object. But crystal report object does not respond to the command and will not release his memory consumption.
The memory consumption u201C34652 KBu201D will be stayed in the memory once job ends. If i again initiate the crystal report object then it crystal report object start to consume the memory from 34652 KB.
Database objects and crystal report objects are properly used in the tool. The object release commands properly communicated to crystal report setup. But the u201CCrystal report service pack 2u201D setup unable to respond the commands which has enabled from .Net Tool. Crystal report objects are properly initiated and disposed in the tool. But the crystal report unable to release from the server.
The memory consumption will be reduced once the server restarted or kill the application.
Crystal report 2008 and crystal report 2008 SP2 setup available in the server.
Microsoft .Net Framework 2.0 SP2, Microsoft .Net Framework 3.0 SP2 and Microsoft .Net Framework 3.5 SP1 are available in the server,
Could you please suggesst how to avoid the memory consumption keep increasing and how to release the memory consumption once the crystal object disposed???Hi Don..
My case is different one. I hope, the problem with Run time Installation setup file (Crystal report 2008 Serivce Pack2 installer) which we installed in the server.
Let me explain with Live scenario which our client faced in crystal report 2008 Service pack2 Installer.
Our client is using a application to help to print their reports. The application is developed with Windows service.
Windows service keep on running in the server. Windows service executes the client 's crystal reports( Labels Report, Stock report) which designed for clients need and the reports will be printed from printer.
10 Same type report (Label Report) will be printed in 1 minute. Reports are not printing during non business hours. But the windows service keep on running. Memory cosumption of application will be 160 MB in business hours.
For Example, On Monday the application memory consumption starts with 160 MB. The Memory consumption will be reached 165 MB in peak business hours. Then the memory will be ended in163 MB in the End of Monday. It means, The memory consumption will be in 163 MB during the non business hours. Reports will not be printed in non business hours.
On Tuesday, the application memory consumption starts with 163 MB and it will be reached 168 MB during the peak hours. The Memory consumption will be ended in 165 MB in the end of Tuesday. The same process contiues till friday. End of friday, the memory consumption of the application will be ended with 170 MB.
Application Memory Consumption slowly increasing in the server. In 5 days, Memory consumption reached Threshold value (170 MB) of the server. Application gets hanged up once the memory consumption reached 170 MB. We got the error messages as "Attempted to read write protected memory " / "Not Enough memory for process". If we restart server / If we restart the service then memory consumption of application get reduced to 160 MB.
From the above scenario, We came know that the either the problem with Application object or the problem crystal report object. In the application, We have checked dispose methods of application objects completly. I am sure that application objects are properly disposed in the application. I hope the problem not with application objects. The problem with Crystal report objects.
Application properly communicates the dispose methods to crystal report objects. Crystal report objects are not released from
the memory.
Crystal report 2008 Serive Pack 2 setup installed in the server.
As you said, If Crystal report runtime is not released from memory then memory consumption keep increase??? In service oriented architecture application, how to unload the crystal report runtime??
Do you any fix for this kind of issue??
Willl Crystal report 2008 service pack 3 help on this issue?? -
How to get the text field in the header for only first page of the report
Hi,
I am developing reports in BI Publisher Enterprise where i am facing problem i.e., i have to get some text field in header,for only first page in the result but it is displaying in all the other pages of the report in result.So,please if you have any idea of how to solve it, please reply.It is required as early as possible.
Thanks in AdvanceInvalid path? What are you doing? Writing the report output to an invalid directory?
Where are your terms and conditions? It would be very easy just to put them in a database table and select them in your report query. -
How to get the search field with API UCM for a specific UCM Profil
We have UCM 10g
For the checkIn we have for exemple the URL : http://xp-ucm1.oth.prs/idc/idcplg?IdcService=CHECKIN_NEW_FORM&dpTriggerValue=1&dpDisplayLabel=Codification%201&IsSoap=1
To obtain all the field for the checkIn is very simple with this service(IdcService=CHECKIN_NEW_FORM) and RIDC, but for search we don't find the idc service ?
<SOAP-ENV:Envelope>
−
<SOAP-ENV:Body>
−
<idc:service IdcService="CHECKIN_NEW_FORM">
−
<idc:document dRevLabel="1" dUser="sysadmin" dDocName="" dDocTitle="">
<idc:field name="xClbraUserList:isExcluded">1</idc:field>
<idc:field name="xsgti_top_rule:isSetDefault">1</idc:field>
<idc:field name="xlist1:isExcluded">1</idc:field>
<idc:field name="xsgti_g_ll_niv1_1:isExcluded">1</idc:field>
<idc:field name="xsgti_chrono_soc"/>
<idc:field name="xsgti_g_entier4:isExcluded">1</idc:field>
any ideasHi,
In fact, I don't want to send parameters to the search service but to get the fields to display an advanced search form of my own.
Some rules and profiles filters the amount of fields availables and having a service that can do this filtering for me would be very useful.
The check-in service do this for a trigger value (profile), but I can't find how UCM uses services to display the search form with the right fields depending on the rules and rights of the user.
When I call a search form, UCM calls a service : http://xxx.xxx.xxx.xxx:xx/idc/idcplg?IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=STANDARD_QUERY_PAGE&dpTriggerValue=xxx&dpDisplayLabel=xxx
But with &IsSoap=1, the values returned are not good, some fields are missing, the field captions are not right... I guess UCM calls sub-services but which ones ?
Thanks :) -
How to get the customer fields view in CRM 2007?
HI Experts,
There is a tab in CRM 4.0 for customer fields(Generated using EEWB).
My question is how can we get these fields into WEB UI?
I didn't find the Component BTCUSTOMER_H in CRM 2007.
What might be the reason behind it?
Please share your views.
Thanks,
Adi.Adi,
You actually got pointed to the wrong blog that I wrote. However if you read the following blog, it will show you how to do what you want to do:
/people/stephen.johannes/blog/2008/01/25/crm-40-to-52-customerh-fields
If you want to cheat, then apply latest support stack for CRM 2007 and the fields will be there. The section 1.13.5 in the SP02 release notes explains that the nodes are now available in CRM 2007 SP02.
Look at this thread on how to view the release notes:
SAP CRM 2007 SP02: DOCUMENTATION RELEASED
If you have any further questiosn let me know.
Take care,
Stephen -
How to get the layout field setting from the oo ALV
Hi:
My user want me to save the data to the email attachment when he change the alv layout.
For example there are 10 fields in a alv report ,and the user change the layout setting to 5 fields,I need to know which field is he need first, how can I get it ?
Pls help me ,thanks a lot !Hello Jerry
When you call method go_grid->GET_FRONTEND_FIELDCATALOG you can retrieve the current layout of the ALV list.
LVC_S_FCAT-COL_POS = Position of column
LVC_S_FCAT-NO_OUT = 'X' = not visible
LVC_S_FCAT-TECH = 'X' = technical column, neither visible nor selectable
Regards
Uwe -
How to get the cursor field on custom cotrol area
Hi all,
I crated a custom contorol area on Dynpro screen.
I'd like to get the cursor when i set the cursor on custom control area.
I tried 'GET CURSOR FIELD w_xxx AREA w_yyy', but I can't get that.
I don't know how.
If you know that, please let me know.
Regards.
Rie.You have to use set_focus method of CL_GUI_CUSTOM_CONTAINER.
CALL METHOD me->txt_container->set_focus
EXPORTING
control = me->txt_editor. -
How to get the extended field of an Extented Standard BO in Std Byd reports
Hi ,
Requirement :
Reflecting an extented field in of an extented BO in all the reports using this BO, or datasource based of this BO.
Explanation :
Suppose I have extented "customer" BO in my solution. the extention field is named as 'customer-ext1 ' having datatype 'text' (say).
Now I need to show this extented field 'customer-ext1' in all the Std Byd reports using / based on the customer BO.
Is this possible thru Byd Studio ( vers 3.0 / 2.6 ) ?
Can anyone help me out on this ?
I have found a statement from some where that -
" A key user can add an extension field to a data source that is based on the same business context as the extension field. This field can be then added to any reports based on the data source. This needs only key user adaptation."
I did not get the higlighted text in the above statement , can anyone help me figure this out ?See as a test purpose,
I have extended "CustomerInvoice BO " with element "Extension1 " with datatype as test;
Now The solution's Key User is enabled.
I guess the Key user is my technical ID right , with which I enabled the Key user of my solution ? or is the Id which had created the solution ?
Post this, when I loggin to the system from web browzer, then go to adapt mode, a yellow bar strip named "Adaption Mode " appears..
Now what to do ?
Where shall i go and add the extended fields ?
can u pls expond the procedure... )
Thanks
Milin -
How to fix the text field width wir=thout wrapping in obiee 11g
Hi,
In OBIEE 11g I want the text filed width should be fixed as 30 character, at the same time if the width beyond 30 characters it should not be wrapped.
To achieve this we went to column properties and removed the wrap check box and in Additional Formatting Options section we set the width size as 30. But still if the text size is beyond 30 getting wrapped
Please help me
Thanks,
AnileshHi,
Yup..its really tricky one..u have play around changing the laft/right padding the additional format options
Thanks
Deva -
How to get a new fields information in a report
Hi Experts
I have added new fields as per sdn blog (/people/khalil.serrhini/blog/2010/08/06/charm--new-fields-in-crmdorder-and-crmdnomonitor-reporting-enhancement--part-a) and it's working fine for me.
Now I want the same information in the report. Please help me how i can get the information in the reports.
Thanks & Regards
VenkatHello Venkat,
Maybe the note "1525010 Enhance the transaction monitor in ChaRM: new date fields" can help you.
Best Regards, -
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 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 KBecause 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].
Maybe you are looking for
-
Better management of multiple accounts on Mail.app
When using multiple accounts on Mail.app, it is possible to have different colors for each account, so that it is easier to avoid sending email from the wrong account?
-
Frustration over the build quality of the X1 carbon ultrabook and the warranty service aspect of it. Bought in September 2012 for a student. Simply stopped working 3 weeks back and given to Palo Alto service center. They sent to some factory for fixi
-
Conversion Agent Error in Adapter Module ?
Hi, I am trying to install the conversion agent with PI 7.0 SP15. But then i got adapter error when trying to test simple scenario PDF file to JDBC. The error message is : =========================================================================== At
-
Why can't I replace an image in a PDF with an EPS file?
I've never seen this behavior before. When I browse out to get some EPS files, they're all greyed out!!! The only files I can import in place of an exsiting image are TIFFs and PNGs, bitmap image formats. This is ridiculous. Thanks, Peter
-
No entry in Ledger LoV while running Import Journal from Purchasing
Hi, I am trying to run Import Journals in a GL responsibility: GL Superuser > > Journal > Import > Run. The Source is Purchasing. However when I try to select the Ledger name from the LoV, there are no values. Whats the solution to this? One of my co