How to show/hide an indesign document in cs4

Hi all,
How to hide/show an indesign document in cs4.
In cs3 , I am doing this using the following code --
IWindow* docWindow = Utils<IWindowUtils>()->GetFrontDocWindow( docRef.GetDataBase() );
//Schedule the command to show the layout window of original document in CS3
InterfacePtr<ICommand> showHideCmd (CmdUtils::CreateCommand( kShowHideWinCmdBoss ));
InterfacePtr<ICloseWinCmdData > closeWinCmdData (showHideCmd, IID_ICLOSEWINCMDDATA);
closeWinCmdData->Set( docWindow );
InterfacePtr<IIntData> iIntData (showHideCmd, IID_IINTDATA);
iIntData->Set( IWindow::kShow );
CmdUtils::ScheduleCommand( showHideCmd );
docWindow->BringToFront();
In cs4, there is an API kShowHidePresentaitonCmd
Code that i wrote for CS4 --
//Schedule the command to show the layout window of original document in CS4IDocumentPresentation* docWindow = Utils<IDocumentUIUtils>()->GetFrontmostPresentationForDocument( docRef.GetDataBase() );
InterfacePtr<ICommand> showHideCmd (CmdUtils::CreateCommand( kShowHidePresentationCmdBoss ));
InterfacePtr<IPresentationCmdData> presentationCmdData (showHideCmd, IID_IPRESENTATIONCMDDATA);
presentationCmdData->Set( docWindow );
InterfacePtr<IIntData> iIntData (showHideCmd, IID_IINTDATA);
iIntData->Set( 0 );                                       // What is the parameter that should be passed in the set function. 0 is not working
ErrorCode result = CmdUtils::ProcessCommand( showHideCmd );
Hide/show document in cs4 is not working

ErrorCode ShowHideDocument(IDocumentPresentation*docWindow, int32 nShowHide)
ErrorCode result = kFailure;
do
  InterfacePtr<IControlView> controlView (docWindow, UseDefaultIID());
  if(controlView == nil)
     break;
  if(nShowHide == 0)
   controlView->Hide();
  else
   controlView->Show();
  result = kSuccess;
}while( kFalse );
return result;
May be helpful!!

Similar Messages

  • How Do I combine 2 InDesign Documents into 1 (in a very particular way)

    How do I combine two InDesign Documents into one in a very specific way.
    Here's my problem: I have two separate InDesign CS5 files for playing cards. File one is the front. File two is the back.
    The company that does my final print production needs the the cards sent as two separate PDFs. One for the card fronts, one for the card backs. Both of these InDesign (and the PDF export) files are arranged in the same way: page 1 is card #1, page 2 is card #2, etc. Nice and simple.
    However, I use a different company for producing prototype versions of the decks (the production printer can't do this economically). My prototype producer needs me to send a single PDF where page 1 is Card #1 Back, page 2 is Card #1 Front, Page 3 is Card #2 back, Page 4 is Card #2 front, etc.
    The decks I am building usually run 56 cards, but can be as large as 180 cards.
    So, what's the easiest way to automate this process? is there a way to combine two separate indesign files by "interleaving" the pages from the two original documents into a new larger document (where I could do a new PDF export)?  Or, is there a better way to do this in Acrobat Pro? At the moment I have to resort to drag and dropping each card from one PDF thumbnail pallet to the other. It's really time consuming and mind-numbingly boring.  Any Ideas?

    This script is actually pretty straightforward, so it's a good first
    challenge I think.
    I would script this in InDesign -- probably because I'm more familiar
    with InDesign scripting.
    To start learning the InDesign scripting basics, open the ExtendScript
    Toolkit (ESTK) which is almost certainly installed on your computer
    already. Go to the Help menu, and you'll find an entry there called
    Adobe Intro to Scripting. Read that. I think that's the best place to start.
    For the script in question, you would want to:
    1. make sure both InDesign documents are open. They would both have the
    same number of pages. (No scripting involved here, just make sure
    they're open before running the script.)
    2. loop backwards through the collection of document pages of one of the
    documents. (document.pages is the collection you're looking for)
    3. use the move() method of a document page to move it. (myPage.move())
    4. Learn about the LocationOptions enumerator so that when you move the
    page you can tell InDesign if you want to move it before, or after
    another page. (LocationOptions.AFTER or LocationOptions.BEFORE)
    5. Get a reference to the page in the second document before (or after)
    which you want to move the page in the first document.
    5. that's basically it
    I suggest that as you work your way through this (if you decide to take
    up the challenge), you post any questions you may have on the InDesign
    Scripting forum here.

  • How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    Or choose Window > Arrange > Tile
    And, you of course can copy/paste without tiling.

  • How to show/hide a form field?

    Hi all,
    Is it possible to programaticlly show/hide a from input field at runtime?
    best

    You can use javascript to achieve this and following is the code I'm using in one of the forms to hide a field when this form is being opened.
    ..after displaying page...
    declare
    v_id number(10);
    begin
    v_id:=p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID',
    p_index => 1
    If v_id is null then
    htp.p('<SCRIPT LANGUAGE="JavaScript">
    function get_index(p_name) {
    var i;
    for (i=1; i<document.forms[0].length; i++){
    if ( document.forms[0].elements.name == p_name) {
    return i;
    var j = get_index("FORM_NAME.DEFAULT.FIELD_NAME.01");
    document.forms[0].elements[j].style.visibility="hidden";
    </SCRIPT>');
    End If;
    -Krishnamurthy

  • How to show/hide build in search box in javascript for LightSwitch html clients?

    Hi
    For each collection on content item, there is built-in showSearch button we can add, once the user clicks on the search, a pre-built-in-search-box shows up above the collection so user can search items in the list. How can I show/hide the pre-built-in-search-box
    in javascript?
    Any help will be appreciated
    The built-in showSearch on content item
    The user clicks the search button, and the pre-built-in-search-box shows up to allow user to enter search terms
    jl

    Hi Joe,
    Welcome to Lightswitch forum.
    If you want to show/hide showSearch button, you can execute this line to show the button,
    this.FindControl("showSearch").IsVisible = true;
    Or execute the line below:
    this.FindControl("showSearch").IsVisible = false;
    Please let me know if there is anything that I can do to help.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to Show/hide the UI Elements in a WD Application

    Hi,
    I need to show/hide and control other properties such as required, readonly etc from UI.
    Can somebody please tell me how I can do that as I am able to save and retrieve the fields from another UI, now the need is to apply them once the Application starts.
    Thanks,
    Rachit

    Hi,
    To show/hide UI elements follow below procedure.
    1) define a attribute(VISIBLE in this case) element in the context of type WDUI_VISIBILITY
    2) in the UI element properties(Visible) bind the above attribute with the element you want to make visible/Hide.
    3) call below method to hide the UI element
        wd_context->set_attribute(
         EXPORTING
           name = 'VISIBLE'
           value = cl_wd_uielement=>e_visible-none ).
    4)     wd_context->set_attribute(
         EXPORTING
           name = 'VISIBLE'
           value = cl_wd_uielement=>e_visible-visible ).  for display.
    You have to call these method at the right spot.
    Thanks,
    Sree.
    Edited by: t sree on Oct 16, 2008 3:36 AM

  • How can one resize a inDesign Document Window without moving Document's position?

    I've searched high and low for an answer to this habit that inDesign has. Am I the only one that finds this annoying?
    You go to adjust the size of your document window to move it out of the way to get to something else on your desktop, and instead of keeping the document in place and just resizing the window, it moves the document with the resize. Not sure if I'm putting this in a way that people can understand me. Say I have two inDesign files open side by side and I zoom in on an area and adjust my view of the page. Then I go to the other inDesign document and adjust the view by grabbing the bottom right hand corner of the window and moving it to where I want it. The whole document then moves with it! I desire it not to, so now I have to waste time by using the hand tool to move it back into place. Illustrator doesn't act like this. Photoshop doesn't act like this. Only inDesign. Does this harken back to the PageMaker days? Am I missing a preference somewhere I need to change? Or is it just the way of things and I'm stuck with it?
    Currently using inDesign CS5 and CS6 on a Mac in OS 10.6.8

    Hi,
    The simplest would be to set the application preferences in the script.
    Like this :
    -- *** set prefs ****
    tell application "AppleWorks 6"
          activate
          set oldPrefs to its preferences
          copy oldPrefs to tPrefs
          tell tPrefs
                set old version warning to false --doesn't show the old version warning alert  
                set converted file suffix to true -- append “[v6.0]” to documents converted from older formats
                set locked file warning to false
                set paint reduction warning to false
          end tell
          set preferences to tPrefs
    end tell
    -- *** end set prefs ****
    --**** your script, example ***
    set tfiles to choose file with multiple selections allowed
    tell application "AppleWorks 6"
          repeat with i in tfiles
                open i
                tell front document
                      -- do something
                end tell
          end repeat
    end tell
    --**** end  your script ***
    -- *** reset prefs ****
    tell application "AppleWorks 6" to set preferences to oldPrefs

  • How to SHOW/HIDE a dreamweaver layer from a flash button?

    I have almost 2 weeks tying to find a solution for this. Please help...
    -How can you SHOW/HIDE an thml-dreamweaver layer from a flash movie button.
    My html layer name is LAYER1, and my FlashMC botton name is FLBOT1
    Now, what is the actionscript that im suppouse to place in the flash button?
    Please respond, Thanks

    Adobe removed Flash Text and Flash Buttons from CS4 for accessibility reasons.  Flash buttons aren't web friendly.  And if you use this approach, you'll need to work in Flash because DW doesn't write Action Script for you.
    That said, you could do something similar without Flash.
    Pure CSS Disjointed Menu Rollovers
    http://alt-web.com/DEMOS/CSS-Disjointed-Menu-Rollover.shtml
    Pure CSS Disjointed Text Rollovers
    http://alt-web.com/DEMOS/CSS-Disjointed-Text-Rollover.shtml
    Show/Hide Layers with DW behaviors:
    http://www.cbtcafe.com/dreamweaver/showhidelayers/index.html
    Walter Zorn's Tooltips
    http://www.walterzorn.com/tooltip/tooltip_e.htm
    FloatBox Demos
    http://randomous.com/floatbox/demo
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • How to show/hide passwords in outlook

    I can show/hide passwords in yahoo but not in outlook. How do I show in outlook

    I'm guessing you can press the little icon to the right of the password field to see the password. I'm using Ubuntu so I don't know what the icon looks like. It should be like a black WiFi signal or something. You should be able to click/hold that to see the password.
    Were you able to show that password before or is this the first time you've tried? You can try to clear the cookies for outlook.com to see if that helps but as far as I know, Windows 8 should be able to show/hide the password.

  • How to show/hide TOC in CP8

    I would like to include a TOC which allows the learner to hide or show it. I added a basic TOC to my project, but don't know how to insert a show/hide function.  Thanks for your help!
    Paula

    This will only work with a TOC in overlay:
    Create a shape button, which you can put on master slides, or time for the rest of the project. It will act as a toggle button to turn TOC on/off.
    Create an advanced or a shared action (the last makes it easier to reuse in other projects):
    Toggle cpCmndTOCVisible

  • How to show/hide invisible characters in Mac Keynote 6?

    How can I show/hide the invisible characters in Mac Keynote 6?

    we call them non printing characters
    this cant be displayed in Keynote, Keynote is a video based presentation application and does not have many typographic tools.
    The sister application to Keynote is Pages which can show non printing characters so you should use that;
    View > show > invisibles

  • How to show/hide total based on selected column in column selector

    Hello,
    Is there a way to show/hide the total based on what column is selected in the column selector? Or alternatively to hide the total based on the column selected? I'm using OBIEE 10g.
    Basically, I have a pivot table with a handful of row variables and one measure. Then I allow the user to select the column variable. The default is to have nothing, which I have achieved using the hidden/dummy column trick (Re: How to add new columns by using Multiselect However, if my pivot table is set to have a total, I now get 2 columns that are the same. When the user selects any other choice (e.g. gender), I would want to see Male, Female and the total. Something like this:
    Default:
    Count
    East 10
    West 20
    Total 30
    Gender:
    Male Female Total
    Count Count Count
    East 6 4 10
    West 14 6 20
    Total 20 10 30
    Any thoughts?
    Thanks!

    I recommend using view selector instead of column selector

  • How to show/hide individual radio buttons in a single radio button list

    Can I apply javascript to checkboxes in order to show/hide individual radio buttons in a single radio button list?

    Thanks, Niall,
    I'll give it a try . . .
    Yours,
    Robert Anderson
    SWRCB WebSupport
    1001 I Street
    Sacramento, CA 95814
    8th floor 59B
    (916) 341-5950
    [email protected]
    >>> Niall O'Donovan <[email protected]> 8/5/2010 1:47 PM >>>
    Hi,
    Yes, it can be done. You just need to reference the actual button, rather than the radio button group.
    It is best if you name the radio button group AND all of the individual radio buttons.
    If the radio button group was named "myRadioButtons" and the three rb were named "yesRB", "noRB", and "maybeRB". All of this is in the hierarchy.
    Then this script in the click event of the checkbox would work:
    if (this.rawValue == 1)
         myRadioButtons.maybeRB.presence = "hidden";
    else
         myRadioButtons.maybeRB.presence = "visible";
    Hope that helps,
    Niall

  • Creating InDesign document outside the context of inDesign document in cs4?

    when i tried to find the uses of IDML in cs4, it points out the by using tried party software tool, its possible for programmatically create, modify, and deconstruct InDesign documents outside the context of InDesign.
    how may it possible?
    thanks
    subha

    There is plenty documentation. Go to
    http://www.adobe.com/devnet/indesign/
    click "Documentation" tab
    scroll down to the section on IDML
    Dirk

  • How do I hide the right document/section sidebar?

    I just opened Pages 5.2 for the first time to edit a big text document, and it opened to a blank page with a big side panel or sidebar the height of the right side of the document window. It has two tabs, one labeled Document and the other labeled Section, and is 2 3/4 inches wide, a huge amount of real estate on my 21 inch iMac's screen. No resizing arrows appear when I hover over the separator between the document and the panel, and the width stays the same if I resize the document window.
    I've figured out how to view or hide other screen elements, but that devilish side panel won't go away. Please tell me there's a way to get rid of it!
    Also, can someone recommend a user guide for the new Pages app? I'm not fond of Apple's online guide. Pages 5.2 seems better than the old Pages app, and if it's good enough I'll switch from NeoOffice, which has tons of features I don't need but isn't as user friendly for regular daily use as apps like Word or WordPerfect.
    Any suggestions would be appreciated!
    Thanks in advance...

    Interesting that you think the Menu looks more "what you expect from a word processor", when the Menus are almost exactly like Pages '09 just missing stuff.
    I think the orderly menus and Inspectors are what I like best about Pages '09. They work from left to right, top to bottom from big features down to small details. Wish everyone did that.
    The Inspectors in Pages '09 can be freely moved, hidden/shown at a keystroke or individual tabs separated. Compared with the huge wasteful forced placement of Pages 5 and almost impossible to work with if not open.
    Apple has fixed about 9 features in Pages 5.2 but since we started the list we probably have found just as many other omissions and major bugs.
    So Pages 5.2 still is short about 100 features and has serious bugs with output, along with a strong probability that your files will ultimately develop serious problems. maybe not even be openable.
    Pages 5 has a huge list of missing features many really essential and a long list of bugs, with the chance of losing your work always just around the corner:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=424&mforum=iworktips ntrick
    As far as using it for real work, I'd still say it is unusable for several reasons:
    1. No facing pages
    2. Lists are just about unmanageable
    3. The T.O.C.s promise improvements by making Section T.O.C.s but there are no retainable T.O.C. styles and the T.O.C.s seem to break
    4. Even moderate amounts of objects bring it to a crawl
    5. Multi page Tables won't show content after several pages
    6. Objects and special formatting in tables can vanish when outputting to pdf
    7. Long lists of Styles lose styles in the list
    8. Still can't select non-contiguous text
    9. No bookmarks
    10. Very slow operation and work procedures
    11. Things get hairy with long documents
    12. eMailing or FTPing documents with 3rd party software can break them
    13. Failed documents are impossible to parse
    There are too many other short falls to list here
    On the plus side only 4 things stand out for me:
    1. Much better drawing tools
    2. Quick layout breaks by simply selecting text and nominating the number of columns. Unfortunately these have on spacimg options before, after or to the sides
    3. Quick editing of templates in the Template Chooser
    4. Collaboration between multiple users
    Still unworkable for me. Particularly disturbing is the hairy iCloud integration, and the dangerously obscure and incompatible file format.
    I am still looking for a replacement, LibreOffice has many of the features, plus others but has a rough UI. So for now I am sticking with Pages '09 which works as it always has until Apple finally makes it unusable.
    Hope that helps,
    Peter

Maybe you are looking for

  • Passing data entered in report to form of workflow

    How to send data from Report SE38 to workflow? I want to send employee details filled in form generated after execution of report to local administrator for taking decision. i want to send data entered in report to form of workflow. Can anybody give

  • HT204350 blank screen on MacBook Pro after transferring data from iMac

    I have transferred the data from my home iMac to my MacBook Pro. Once completed, my MacBook screen has appeared blank. Even when I have turned it on and off the same result happens.

  • How do I Turn Off Slices in Photoshop?

    I've been three days searching from within Photoshop CC 2014 on a Mac and exhausted, can't find what must be under preferences but no clear indication at all. Can someone help with the correct way to turn off the lines and measurements that pop up co

  • How to find total refresh time of Materialize view?

    Hello All, I want to know the total refresh time of Materialize view. i m refreshing MV by below statement i hv not logging the start and end time of this in process. exec dbms_mview.refresh('EMP_MV','C','',FALSE,FALSE,0,0,0,TRUE); So, anybody can yo

  • Can we use JDBC adapter at ECC side to extract the data directly

    Hi , Is it possible in any way we can use JDBC adapter at SAP to extract data from sap tables.because as far as i know jdbc adapter used only when we having some database system at sender side. Regards