Issue with find out the pageItem type

Hi all,
i am trying to find out the all pageitem's type and its data on a document .i just use the following code to find out the pageitem's type .
InterfacePtr<ISpreadList> spreadList(document, UseDefaultIID());
        ASSERT(spreadList);
        if(!spreadList) {
            break;
        UIDList frameList(database);
        int32 spreadCount = spreadList->GetSpreadCount();
        for (int32 spreadIndex = 0; spreadIndex < spreadCount; spreadIndex++ )
            UIDRef spreadUIDRef(database, spreadList->GetNthSpreadUID(spreadIndex));
            InterfacePtr<ISpread> spread(spreadUIDRef, UseDefaultIID());
            ASSERT(spread);
            if(!spread) {
                break;
            int32 numberOfPages = spread->GetNumPages();
            for (int32 nPage = 0; nPage < numberOfPages; nPage++ )
                UIDList pageItemList(database);
                spread->GetItemsOnPage
                 nPage,
                 &pageItemList,
                 kFalse,
                 kFalse 
                bool16 hasContent;
                int32 pageItemListLength = pageItemList.Length();
                for (int32 j = 0; j < pageItemListLength; j++ )
                    UIDRef pageItemRef = pageItemList.GetRef(j);
                    InterfacePtr<IGraphicFrameData> graphicFrameData(pageItemRef, UseDefaultIID());
                    hasContent =graphicFrameData->HasContent();
                    InterfacePtr<IPathGeometry> pathGeometry(pageItemRef,UseDefaultIID());
                    if (pathGeometry != nil)
                       PMPageItemType pathType = Utils<IPathUtils>()->WhichKindOfPageItem(pathGeometry); //issue is this statement simply break up the execution
                        switch (pathType)
please can any one help me? 

Hi Pickory
i have tried the following code ,but it doesnt works
UIDList pageItemList(database);
                                        spread->GetItemsOnPage
                                         nPage,
                                         &pageItemList,
                                         kFalse,
                                         kFalse
                  bool16 hasContent;
                                        int32 pageItemListLength = pageItemList.Length();
                                        for (int32 j = 0; j < pageItemListLength; j++ )
                                                  UIDRef content = pageItemList.GetRef(j);
                       InterfacePtr<IGraphicFrameData> graphicFrameData(content, UseDefaultIID());
                                        InterfacePtr<IGeometry> frameGeom(graphicFrameData, UseDefaultIID());
                                        PMMatrix inner2parent = ::InnerToPasteboardMatrix(frameGeom);
                    PMRect   r = frameGeom->GetStrokeBoundingBox(inner2parent);
any thing need to be included?

Similar Messages

  • How to find out the condition type of the tax code in the PO document

    Hi friends,
    My questions is how to find out the condition type of the tax code in the PO document.
    When you use me23n to display one PO document. In the invoice tab, there is one text field named 'tax code' whose value could be T1, T2, J1, J2 and so on. Beside the text field, there is one button named taxes. When you click the button taxes, it will show you the condition type of the tax code. For example, if the tax code is 'T1', then its condition type 'mwcn'.
    I want to use the information on the PO to find out the value 'mwcn' of the tax code 'T1'. Could anybody help to describe the logic?it looks like the value is saved in the table konp. But I don't know the logic. Please describe. Thank you.

    Hi,
    Hope you have asked for select query..
    select single knumh from a003 into wa_knumh
      where mwskz = wa_itpotab-mwskz
      and kappl = 'TX'
      and aland = 'IN'.
    select single kbetr from konp into wa_kbetr
      where knumh = wa_knumh.
    cheers,
    Dep

  • Which table i can use to find out the condition type in PO item ?

    Hello, erveryone. Which table i can use to find out the condition type in PO item ? Thank you.
    Xinzhou.

    hi
    The Table name used to find the Tax Values are
    KOMV: Pricing Communications-Condition Record
    KONV: Conditions (Transaction Data)
    From the above tables you can refer the fields below.
    KAWRT
    KBETR
    for excise check table J_1IEXCHDR for header
    J_1IEXCDTL for item excise
    Fetch the corresponding records based on the field
    KNTYP
    regards
    kunal

  • How to find out the font type?

    Is it possible to find out the type of the used fonts(like Open type (or) true type) in illustrator cs3 file through programmatically. Kindly share with me the possibilities and solution.
    Thanks...

    You can't consistently, but a lot of files have identifying characteristics in the first few bytes that make it easier.
    There are utilities to do this, but I could have sworn that someone wrote a Java library to do it as well. As always, I suggest that you poke around http://jakarta.apache.org/commons/
    Or do a Google if Jakarta doesn't pan out.
    Message was edited by:
    paulcw

  • Help me to find out the font type?

    Is it possible to find out the type of the used fonts(like Open type (or) true type) in illustrator cs3 file through programmatically. Kindly share with me the possibilities and solution.
    Thanks...

    Good evening,
    an idea to help you in your approach
    Sub texte()
    Set appref = CreateObject("Illustrator.Application.cs4")
    Set myDoc = appref.ActiveDocument
    Set myText = myDoc.TextFrames
    For i = 1 To myText.Count
    MsgBox (myText(i).Characters(1).CharacterAttributes.TextFont.Family)
    Next
    End Sub
    Patrice

  • How to find out the idoc type required for our requirement

    Hi,
         How to find out the list of available idoc type in SAP. It will be good if i get to know the table name where all the idoc type definitions are gets stored.
    Say i have some requirement and for that requirement how i can find the proper idoc type to be used. (assume functional consultant is not providing that information)
    Points will be given for the useful answers
    Thanks,
    Prasanna

    Hi prasanna,
                    we can get SAP idoc types in tcode we31.For every requirment there will be different message type.
    For example we want idoc type for account invoice receipt.
    First find out message type for that purpose which can be found in we81-ACC_INVOICE_RECEIPT.
    Get this message type and search in we82  where we can find message type and idoc type linkage.
    try this way.
    Reward if it is usful.
    Thanks,
    Srikanth.A

  • How to find out the parameter type of a parameterized object?

    Hi,
    I've got a list containing instances of a parameterized class. The parameters of the instances can be different. When using the instances, I need to know the types of the parameters. How can I find them out?
    Regards,
    Frank

    Look at the first item in the List and see what it is?
    I'm not trying to be funny. Generic information is compile time only, the types of the parameters are not generally available at run time.
    You can find out the bounds on the types, if any, but not the actual types.
    AndyT

  • Document to find out the Object types

    Hi All,
    Can any one pls provide me the document where you have the list of all Object types defined in Oracle Applications.
    Thanks in Advance

    Hi,
    What object types you are referring to? Could you please elaborate more.
    Oracle Applications Developer Guide (and other main documents) can be found at:
    Applications Releases 11i and 12
    http://www.oracle.com/technology/documentation/applications.html
    Regards,
    Hussein

  • How to find out the formatt type of a date.

    hello iam getting the date from some content server..then iam updating the date..the problem is before update i should know the date formatt of returned date from server so that i can set that formatt to the user entered date while updation..so how can i know the date formatt of given date..
    regards,

    object dat1 ="some value";
    when i modify these date and submit back through
    connector its checking for format..
    bcos iam not sure what date formatt server have..
    i want to know can we no from dat1 about the
    format..whether this dat1 is in dd/MM/yyyy format are
    MM/dd/yyyy format..So you have a String that reprents a date? Or do you have a Date? If the latter, then, like somebody already said, there is no format.
    Assuming it's a String...
    Are dd/MM/yyyy and MM/dd/yyyy the actual formats you'll get? Let me ask you this: If somebody showed you the string (on a piece of paper) "12/05/2005" how would you know if it was Dec. 5 or 12 May?
    Answer: You wouldn't. You can't without some additional information.
    And if you can't know, then neither can Java.

  • How can I find out the current platform type?

    Hello,
    I want to find out the platform type (in the format of v$transportable_platform.platform_type) of a running Oracle instance (on 10g2 and 11g1). The v$transportable_platform shows a list of all supported platforms, and I want only the type that is encoded in the datafiles - v$datafile does not provide me such information.
    Thank you,
    Adrian

    AdrianM wrote:
    Hello,
    I want to find out the platform type (in the format of v$transportable_platform.platform_type) of a running Oracle instance (on 10g2 and 11g1). The v$transportable_platform shows a list of all supported platforms, and I want only the type that is encoded in the datafiles - v$datafile does not provide me such information.
    Thank you,
    AdrianDear Adrian, use the following query:
    select PLATFORM_NAME from v$database;

  • Finding out the sales tax type using the Fun. Module-ME_PO_PRICE_SIMULATION

    HI,
       I have used the function module ME_PO_PRICE_SIMULATION to give the pricing details in one report.  In the same function module it is also giving the tax applicable for the vendor-material-site combination. ie., tax code and the tax. procedure. Is it possible to find out the Tax type using
    this data ie,, if it is LST or CST

    Hi ,
    I think from the taxcode you can findout LST(or) CST
    try
    G.Ganesh Kumar

  • How to find out the object is available or not in BC

    Hi dear friends,
    Suppose I want to design/create a Cube / ODS, before going to create that object, how to find out the same type of Object is available or not in BC with the specification which I want
    Thanks in advance

    Hi Paul,
    at least you need to know the application you are talking about. Then you can goto that particular area and evaluate the content (cubes, infoobjects, infosources, datasources). It will surely give you an idea of the fulfilment of your requirements by the content.
    Siggi

  • How to find out portlet instance type without using PortletInstanceInternal

    Does anyone know how to find out the instance type of a portlet using the API? The instance type corresponds to INSTANCE_TYPE column in PF_PORTLET INSTANCE table.

    Does anyone know how to find out the instance type of a portlet using the API? The instance type corresponds to INSTANCE_TYPE column in PF_PORTLET INSTANCE table.

  • How do I find out the ID of a reminder created with an applescript?

    I created an applescript to create a reminder from Quicksilver, but I want it to show the reminder once it has been created if Reminders was already open. If I use this, then another reminder with the same name sometimes gets shown. How do I find out the ID of a reminder when I create it and set it to a variable so that it will select the reminde I want it to, and if this is not possible, how should I do it?
    Here is the applescript:
    using terms from application "Quicksilver"
              on process text reminderData
                        if reminderData is "help" then return "Syntax: \"Name:Priority Time Date List Notes\""
                        set isName to true
                        set isPriority to false
                        set hasBeenPriority to false
                        set priorityEntered to false
                        set isTime to false
                        set hasBeenTime to false
                        set timeEntered to false
                        set isDate to false
                        set hasBeenDate to false
                        set dateEntered to false
                        set isList to false
                        set hasBeenList to false
                        set listEntered to false
                        set isNotes to false
                        set reminderName to ""
                        set reminderPriority to ""
                        set reminderTime to ""
                        set reminderDate to ""
                        set reminderNotes to ""
                        set reminderList to ""
                        set reminderDataCharacters to the characters of reminderData
                        repeat with i from 1 to number of items in reminderDataCharacters
                                  set currentItem to item i of reminderDataCharacters
                                  if isName is false and hasBeenPriority is false then set isPriority to true
                                  if hasBeenPriority and hasBeenTime is false then set isTime to true
                                  if hasBeenTime and hasBeenDate is false then set isDate to true
                                  if hasBeenDate and hasBeenList is false then set isList to true
                                  if hasBeenList then set isNotes to true
                                  if isName then
                                            if currentItem is ":" then
                                                      set isName to false
                                            else
                                                      set reminderName to reminderName & currentItem
                                            end if
                                  end if
                                  if isPriority then
                                            if currentItem is "!" or currentItem is "-" then
                                                      if currentItem is "!" then set reminderPriority to reminderPriority & "!"
                                                      set priorityEntered to true
                                            else
                                                      if currentItem is " " and priorityEntered then
                                                                set isPriority to false
                                                                set hasBeenPriority to true
                                                      end if
                                            end if
                                  end if
                                  if isTime then
                                            if currentItem is " " then
                                                      if timeEntered then
                                                                set isTime to false
                                                                set hasBeenTime to true
                                                      end if
                                            else
                                                      if currentItem is not "-" then set reminderTime to reminderTime & currentItem
                                                      set timeEntered to true
                                            end if
                                  end if
                                  if isDate then
                                            if currentItem is " " then
                                                      if dateEntered then
                                                                set isDate to false
                                                                set hasBeenDate to true
                                                      end if
                                            else
                                                      if currentItem is not "-" then set reminderDate to reminderDate & currentItem
                                                      set dateEntered to true
                                            end if
                                  end if
                                  if isList then
                                            if currentItem is " " then
                                                      if listEntered then
                                                                set isList to false
                                                                set hasBeenList to true
                                                      end if
                                            else
                                                      if currentItem is not "-" then set reminderList to reminderList & currentItem
                                                      set listEntered to true
                                            end if
                                  end if
                                  if isNotes then set reminderNotes to reminderNotes & currentItem
                        end repeat
                        if reminderDate is not "" then
                                  if reminderTime is "" then set reminderTime to time string of (current date)
                        end if
                        if reminderTime is not "" and reminderTime does not contain "am" and reminderTime does not contain "pm" then
                                  try
                                            if (item 1 of the characters of reminderTime) as number is greater than or equal to 8 and (item 1 of the characters of reminderTime) as number is less than or equal to 11 then
                                                      set reminderTime to reminderTime & "am"
                                            else
                                                      set reminderTime to reminderTime & "pm"
                                            end if
                                  end try
                        end if
                        try
                                  set reminderDateAndTime to date (date string of (date (reminderDate & "/" & last word of (date string of (current date)))) & " " & time string of (date reminderTime))
                        on error
                                  set reminderDateAndTime to false
                        end try
      createReminder(reminderName, reminderPriority, reminderNotes, reminderList, reminderDateAndTime)
                        tell application "Quicksilver" to show notification "The reminder was created successfully" text "Quicksilver successfully created your reminder."
              end process text
              on createReminder(theName, thePriority, theNotes, theList, theDate)
                        if thePriority is 1 then set thePriority to 9
                        if thePriority is "!" then set thePriority to 9
                        if thePriority is 2 then set thePriority to 5
                        if thePriority is "!!" then set thePriority to 5
                        if thePriority is 3 then set thePriority to 1
                        if thePriority is "!!!" then set thePriority to 1
                        tell application "System Events"
                                  if exists process "Reminders" then
                                            set wasOpen to true
                                  else
                                            set wasOpen to false
                                  end if
                        end tell
                        tell application "Reminders"
                                  if theDate is false then
                                            try
      make new reminder at list theList with properties {name:theName, body:theNotes, priority:thePriority}
                                            on error
      make new reminder with properties {name:theName, body:theNotes, priority:thePriority}
                                            end try
                                  else
                                            try
      make new reminder at list theList with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
                                            on error
      make new reminder with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
                                            end try
                                  end if
                                  if wasOpen then
      show reminder theName
                                  else
                                            quit
                                  end if
                        end tell
              end createReminder
    end using terms from

    This seems to find the ID, which is sort of the answer to my question, but I still don't seem to be able to use it to show to right reminder. I get this error:
    error "Reminders got an error: Can’t make reminder id \"1E436B16-561C-4F88-8CA6-78029BE68BBF\" into type integer." number -1700 from reminder id "1E436B16-561C-4F88-8CA6-78029BE68BBF" to integer
    What is wrong, and how should I fix it?
    Here is the createReminder block now:
    on createReminder(theName, thePriority, theNotes, theList, theDate)
              if thePriority is 1 then set thePriority to 9
              if thePriority is "!" then set thePriority to 9
              if thePriority is 2 then set thePriority to 5
              if thePriority is "!!" then set thePriority to 5
              if thePriority is 3 then set thePriority to 1
              if thePriority is "!!!" then set thePriority to 1
              tell application "System Events"
                        if exists process "Reminders" then
                                  set wasOpen to true
                        else
                                  set wasOpen to false
                        end if
              end tell
              tell application "Reminders"
                        if theDate is false then
                                  try
                                            set theReminder to make new reminder at list theList with properties {name:theName, body:theNotes, priority:thePriority}
                                  on error
                                            set theReminder to make new reminder with properties {name:theName, body:theNotes, priority:thePriority}
                                  end try
                        else
                                  try
                                            set theReminder to make new reminder at list theList with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
                                  on error
                                            set theReminder to make new reminder with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
                                  end try
                        end if
                        set theID to the id of theReminder
                        if wasOpen then
      show theID
                        else
      quit
                        end if
              end tell
    end createReminder

  • Find out the suspect's earlier record when we go to or type suspect's name

    Hi,
    I have had a test application withseveral columns like
    1) serial No
    2) Date of complain
    3) name of complainant
    4)phone no and address of complainant
    5)nature of complaint
    6) name of suspect
    7)phone no and Address of suspect
    I want to find out the record of the suspect when we go to or type suspect’s name, if it is not the first time.
    What coding I need in order to find out the suspect record when we go to the suspect name.
    Thanks
    database: 0racle8 forms 6i

    sh**** wrote:
    Hi,
    I have had a test application withseveral columns like
    1) serial No
    2) Date of complain
    3) name of complainant
    4)phone no and address of complainant
    5)nature of complaint
    6) name of suspect
    7)phone no and Address of suspect
    I want to find out the record of the suspect when we go to or type suspect’s name, if it is not the first time.
    What coding I need in order to find out the suspect record when we go to the suspect name.
    Thanks
    database: 0racle8 forms 6iOracle 8? Really?
    Is this a forms question or a sql question? If a forms question, there is a better forum for that. If a sql question, there is also a forum for that, though they often get dealt with here. But I'll tell you no one is going to write your sql for you. You need to show the actual table structure (not just a general description) and show us a sql statement that you tried and tell us what you expected vs. what it actually gave you.
    This looks very much like homework and with what we know so far (not much) it looks like the sql is about as simple as it can possibly get .. like what one would write in the first 10 minutes of their very first sql class.
    Have you looked at the fine SQL Reference manual?

Maybe you are looking for

  • Keynote '09 ... Hang and closed

    After open app Keynote '09 and click new or open old file. Application hang and close in a few minute everytime "Keynote quit unexpectedly" Problem Detail and System Configuration Process: Keynote [4465] Path: /Applications/iWork '09/Keynote.app/Cont

  • How to increase width of LOV popup

    I would like to increase width of LOV popup in my ui. I found one suggestion to use skin to change the LOV display property and would like to know if there is any other default framework support to increase LOV size declaritively. Appreciate your res

  • Frozen iphone

    frozen iphone

  • Can we link all the documents for a particular requirements document

    Hi,         As of now, In Solution Manager we can able to find the document only if we know the document name or any of other details. Can we do in such a manner, If we have requirements document and can we link all related documents (Functional Spec

  • OnLocation CS3 Trial will not open

    I downloaded the 30 day trial of OnLocation CS3 from the Adobe Website v3.0.1101.0).  It installed fine.  When I launch it, the splash screen comes up and then the license screen comes up.  When I hit ACCEPT, the license screen closes and then the sp