Getting hyperlink formula from field objects.

Hi everyone,
I'm looking to extend the export to .pdf functionality in order to include hyperlinks. I have already ran some proof of concept programs, and I'm able to export to .pdf and add a hyperlink to a rectangular area of an existing .pdf document. The only thing left is to be able to pull the information regarding field location, size and hyperlink from the report.
So, that's my question; How do I loop through the fields of an existing crystal report, check for hyperlink formula field, then get the link text/field position and size?
I know that I'm asking for a lot here... I don't need full code samples, just some hints where to start... for example:
- Where do I find the collection of generated data field objects?
- Where do I find the hyperlink text on those objects?
Thanks, in advance, for any help that you may be able to offer.
- Scott

Hi Scott,
The first place I go is to the .NET Object browser. You have to add all of the CR Assemblies to get all of the info but it's a great place to start:
Just search on "hyperlink" and you get this first hit and a few more:
CrystalDecisions.CrystalReports.ViewerObjectModel.ReportObjectInstance.HyperLink
CrystalDecisions.Windows.Forms.ObjectInfo.Hyperlink
CrystalDecisions.ReportAppServer.ReportDefModel.ISCRObjectFormat.HyperlinkText
CrystalDecisions.ReportAppServer.ReportDefModel.ISCRObjectFormat.HyperlinkType
Here's what I typically include in my projects for testing:
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.ReportAppServer.CommonControls;
using CrystalDecisions.ReportAppServer.CommLayer;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.ObjectFactory;
using CrystalDecisions.ReportAppServer.DataSetConversion;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Windows.Forms;
Then go to help.sap.com and get the latest SDK Help files. Or if you are using VS 2010 then use the local install of it.
Thank you
Don

Similar Messages

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

  • How to get first row from View Object cache.

    hi,
    I am using Jdeveloper 11.1.1.6
    can we get first row from View Object cache??
    Thanks in Advance.
    Best
    Shashidhar

    Hi Frank,
    Thanks for reply!!
    My case is:
    I have a Query based ViewObject.
    One of the field is LOV and remaining fields are in ADF table. the LOV field is out side ADF table when i insert first record in ADF table and i choose LOV  filed the value is selected.
    when i create second row LOV value got refreshed because both are in same VO.
    I need to get the LOV value of first row and set same value to second Row.
    Shashidhar

  • How to get a formula from the user from a text box in a webpage

    Hi. I would like to know how to get the formula from the user who enters in a textbox. This formula can have any number of variables starting with a and goes on.
    The complexity of the formula can go upto sin, cos, ln, exp. Also user enters the minimum and maximum values of these variables. Based on a specific algorithm (which I use) I would calculate a *set of values, say 10, for each of these variables, substitute in the formula and based on the result of this formula, I select ONE suitable  value for each of the variables.
    I don't know how to get this formula (which most likely to be different each time) and substitute the values *which I found earlier.
    Kindly help me out in this issue.
    Thanks

    The textbox is the easy part. It's no different than getting a String parameter out of an HTTP request.
    The hard part is parsing the String into a "formula" for evaluation. You'll have to write a parser or find one.
    Google for "Java math expression parser" and see what you get.
    Or write your own with JavaCC.
    %

  • How to get attribute value from an object inside an object in Xpress

    Does anyone know how to get an attribute value from an object in Xpress in a workflow? I have an object structured as follows:
    <ResourceInfo accountId='mj628' tempId='3483372b787ce7dd:-5d99a0c5:130cb238483:-3600'>
    <ObjectRef type='Resource' name='Google Apps'/>
    </ResourceInfo>
    I need if possible to get the name='Google Apps', which is inside the ObjectRef, so I guess its an attribute value of an object inside an object.

    If the ResourceInfo object is accessible in a variable, i.e. named "myResInfo", you just have to check the Java API and call the relevant method:
    <invoke name='getResourceName'>
      <ref>myResInfo</ref>
    </invoke>

  • Getting static member from Field

    Hello,
    I have a 'static type safe enum class' and I want to use reflection to implement its toString() method, the String returned should be the name of the field.
    (Note that the static instance variables themselves do not have String fields that could be used for the toString() return value.)
    I am able to iterate through all fields of the class and print out the names using getName()
    But not sure how to compare the types of the fields to a particular type. For example:
    for (int i = 0; i < fields.length; i++)
    Field field = fields;
    // how to compare a field to know if it is a
    // particular static instance field
    if (field.getType().equals(MyEnum.A_STATIC_INSTANCE))
    return field.getName();

    for (int i = 0; i < fields.length; i++)
        Field field = fields;
    Object fieldValue = field.get(null);
    if (fieldValue == this) return field.getName();
    throw new IllegalStateException();Note that &#91;code] tags produce the pretty formatting in this post.

  • Is there any way to get an array from an object?

    public class X {
    byte[] a = new byte[] {0x10,0x20};
    //Native method
    public native short testnative(X b);
    //C++
    JNIEXPORT jshort JNICALL Java_Native_testnative1 (JNIEnv *env , jobject obj, jobject testobj)
    Is there any way to get byte[] a from jobject testobj ?
    Pprimitive types and objects can be get by JNI functions(like GetIntField, GetObjectField etc.), but I didn't find fucntions like GetXXXArrayField(), then how can I do that?

    Hint: an array is an object.
    -slj-

  • How to Get property values from Shared Object in client's load event - Very urgent

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

  • How to get a value from an object

    Here is the concept of something I want to do in PowerShell:
    $exp = get-process explorer | select *
    $pms64 = get_value( $exp, PagedMemorySize64 )
    As I see it, the value would be available to use.  Using that technique I could get other values then order them to write to a log file. 
    How should I do this? 
    Please make the answer as simple as possible.  What search term can I use to find a tutorial on this topic?
    ~jag77 We need to know what a dragon is before we study its anatomy. (Bryan Kelly, 2010)

    Hi,
    Here's a simple way to get at a single property:
    $pms64 = (Get-Process explorer).PagedMemorySize64
    $pms64
    For the purpose of writing to a log file, you'd be better off piping the object through Select-Object to get the properties you're interested in and then into Export-Csv or Out-File to create the output.
    Get-Process explorer |
    Select-Object -Property Name,Id,PagedMemorySize64 |
    Export-Csv .\explorerStats.csv -NoTypeInformation
    Some reading material:
    http://windowsitpro.com/powershell/powershell-objects
    EDIT: Also, I do highly recommend that you look through the link jrv has posted. There's good information there.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • How to programmatically get alert link from SPAlert object ?

    Hello,
    I am retrieving the alert collection programmatically using SPALertCollection Oobject.
    I require to get the alert link using SPAlert object.
    would you please let me know whether its possible to get the alert link programmatically ?
    Thanks and Regards,
    Dipti Chhatrapati

    Hi Dipti, 
    Thanks for posting your issue, Kindly check out the below mentioned code snippet if it works for you
    public static void FixAlertUrl()
    using (SPSite oSite = new SPSite("http://server/site"))
    using (SPWeb oWeb = oSite.OpenWeb(oSite.RootWeb.ID))
    SPAlertCollection oAlertCol = oWeb.Alerts;
    int counter = 0;
    foreach (SPAlert vAlert in oAlertCol)
    vAlert.Properties["siteUrl"] = "http://newurl.domain.com";
    vAlert.Update();
    counter++;
    Console.WriteLine(counter);
    Also, check out below mentioned URLs to fix this issue
    http://www.c-sharpcorner.com/uploadfile/anavijai/programmatically-creating-alerts-in-sharepoint-2010/
    http://bongio81.blogspot.in/2014/03/sharepoint-2010-personalizzare-spalerts.html
    http://sharepoint-insight.blogspot.in/2008/07/customising-alters-spalert.html
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to get hyperlinks labels from javascript

    Folks,
    in my jsp, i'm using custom tags to generate hyperlinks. Now what i want is to have the label of the hyperlinks in the javascript. How can i do that. I tried document.anchors but it gives me zero length array. Is there any other way of doing it.

    JSP generates the HTML (and possibly Javascript) that the browser displays. Once the browser is displaying it, the JSP page's work is already long done, and is not "running" anymore. So there's no connection between your JSP page and what's in the browser.
    JSP does not change how HTML works, only how it's generated.
    Otherwise you are asking a Javascript question, and Java != Javascript, so you should go find a Javascript forum.

  • Invoke a method by getting method name from properties object

    HI ,
    I am storing method names in a properties file . Can any one tell me , how can I invoke those methods ?? Please Urgent.
    Here is the sample program what I am trying to do . Please tell me how to invoke method which is represented by the String "methodTobeInvoked" in the below program.
    public class HelloWorld {
         private String name="meena";
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public static void main(String[] args) {
              try {
                   Properties props=new Properties();
                   props.setProperty("method", "getName()");
              String methodTobeInvoked= props.getProperty("method");
              }catch (Exception ioe) {
                   System.err.println(ioe.getMessage());
    Thanks!!!

    meenaalenoor wrote:
    I am storing method names in a properties file . Can any one tell me , how can I invoke those methods?
    Here is the sample program what I am trying to do.
    Please tell me how to invoke method which is represented by the String "methodTobeInvoked" in the below program.
    public class HelloWorld {
         private String name="meena";
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public static void main(String[] args) {
              try {
                   Properties props=new Properties();
                   props.setProperty("method", "getName()");
              String methodTobeInvoked= props.getProperty("method");
              }catch (Exception ioe) {
                   System.err.println(ioe.getMessage());
    }Have you looked at [java.lang.reflect|http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/package-summary.html] ?

  • How to find out the unit of Field object?

    Dear Friends ,
    I Placed 4 fields in report . Just i want to get the position of field object in report using vb.net code .
    In report i selected the field and click f4 button , property window is open , in that its showing Top = 390 , left = 295 .
    In which unit the values are showing , According to that i want to change the position dynamically .
    Note : I am using VS 2010 and Sap Crystal report version for VS , SP6.

    In twips.. which are 1440th of an inch.

  • Hi How to get XML file from servlet that XI sent to my J2EE appl?

    Hi All!
    I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
    Please help me its urgent, Any code help is highly appreciated.
    My xml file will be like this:
    <ns0:Http_Message_Type_Demo
    xmlns:ns0="http://abcdemo.com">
    <Name>ABC</Name>
    <RollNo>123</RollNo>
    <Address>a-4</Address>
    </ns0:Http_Message_Type_Demo>
    somebody should help me!please
    Thanks

    Hi,
    You can use HTTPServletRequest object to get the XML payload.
    BufferedReader reader = request.getReader(); //gets XML payload
    String line = reader.readLine(); // to read the XML payload line by line
    (request is the HTTPServletRequest object)
    Regards,
    Uma

  • Formula in Fields and get data from fields together

    Hi, I was trying to setup formula in fields as follows:
    U_Test & U_Test are numeric fields.
    SELECT ($[INV1.U_Test.Number]-$[INV1.U_Test3.Number])*0.1
    The outcome should be (U_Test-U_Test3)*0.1
    U_Test2 & U_Test5 are alphnumeric fields.
    SELECT $[INV1.U_Test2]+[INV1.U_Test5])
    The outcome should be U_Test2U_Test5
    I have been struggling in the syntax error. Can you help me out?
    Thanks.
    Raymond

    I think better u can create the UDF again.
    Test - Numeric - 10
    Test1 - Numeric - 10
    Then use this query
    Select $[$38.U_Test.number] + $[$38.U_Test2.number]
    I hope UDF can be case sensitive. It is working properly for me.
    Sample:
    Select case when ($[por1.U_x.number] *$[por1.U_y.number]) > 15 then 15 else ($[por1.U_x.number] *$[por1.U_y.number]) end
    here x,y are UDF created as numeric.
    SAGAR

Maybe you are looking for

  • Saving contacts on windows 8

    So i got a new laptop, and im looking to save all of my contacts from my iphone onto it. I am running windows 8 and still fairly unfamiliar with it. Im looking to save my contacts so tha i can restore my phone, but be able to put all my contacts back

  • Problem in downloading and installing adobe apps in windows phone.

    How to download adobe apps. eg, adobe flash player in my windows phone Nokia Lumia 720? I tried several times but failed to download & installed, as showed my device does not support it! But I downloaded adobe reader from windows store, but did not f

  • Adobe Reader Bookmark panel scrolling

    We have documents with a large number of bookmarks. We would like to be able to scroll through the bookmarks but there is no scroll bar on the bookmarks panel. The mouse wheel allows us to perform this action, however we are using a smartboard to dis

  • Error in FS10N

    Hi all Gurus, We are on SAP ECC 6.0 & our fiscal year is Jan to Dec. Recently, we closed the fiscal year 2006 burt we are yet to run the closing programs like transferring receivables & payables to new year, asset values in new year etc. We have made

  • Cant update apps anymore

    Recently my ipod touch has had problems updating my apps. I click check for available downloads and a box pops up and tells me that the itunes store is temporarily unavaliable, try again later. I have been trying for days now and nothing has changed.