Skip to main content
November 9, 2011
Question

PageItem with placed Picture[JPG,EPS..]- Gives problem when added to PageItemScrapStorage

  • November 9, 2011
  • 1 reply
  • 720 views

Hi Everyone,

   Note: Sorry for the typing errors in the previous discussion.

            I am using kPageItem flavour for dragging articles from plug-in tree view pannel, where the pannel lists articles to be published in a selected page.

            User [Page Designers], should be able to dragg and drop article into the page in the format they preselect for each article.[listed in a dropdown list]

            [templates] - defines a predefined set of styles in which the news can appear in pages.

          Steps taken

               1. I studied BasicDragDrop sample

               2. I adopted  kPageItem flavour for my dragdrop action because of 2 reasons , firstly ,as it shows the structure[template] of the news while dragging it to the page. [ for this No Extra coding was required]

                3. Secondly no extra processing was required for Drop action processing.

                4. When the user initiates dragg action, all the pageItem required for the template is created in the ScrapStorage of DataExchageHandler, promissing kPageItem flavour.

          

           This method works well with all pageitem, but the problem is with the pictures of the article.

               Whenever I try to add PageItem with linked image into the ScrapStorage using SDKLayoutHelper::PlaceInFrame() cmd utility, Indesing breaks.

please give a hand on this issue 

[ I tried to explain the problem as clearly as possible - inorder to save my time and your time]          

This topic has been closed for replies.

1 reply

Jack_Ian
Known Participant
November 10, 2011

Are you testing against InDesign Debug?

If so, are there any ASSERTS before the crash?

November 10, 2011

No  ,   I am running in Release Version of Indesign

Jack_Ian
Known Participant
November 10, 2011

What you're doing seems OK, but there are many pitfalls.

The Debug Version of InDesign is excellent at helping you avoid these pitfalls and is also very useful for tracking down these kinds of problems.

Without the further information that would be provided by the Debug Version, it's very hard for anybody here to guess where your problem might lie.

You'll need to enter the partner program to get access to the Debug Version, and that will cost money, but for plug-ins as complex as the one you are trying to create, it's well worth it.

Sorry I can't be more help.