How to use Help View 2 in standalone Winform app similar to VS Package Help2 from DTE2

Hello,
 We are successfully obtaining a DTE2 object and then the Help2 object to connect our context id names with triggering the Help Viewer 2 in a VS package but can’t seem to do the same outside of VS.
 Here’s a sample of how we handle getting it okay from the VS package code:
dte2 = Package.GetGlobalService(typeof(DTE)) as DTE2;
help2 = (Help2) dte2.GetObject("Help2");
 Then we can set out context id like this:
helpId = “MYFORMCONTEXTIDHERE”;
help2.DisplayTopicFromF1Keyword(helpId);
Within VS this works fine for our package.  However, the winform app version can’t get the DTE2 object as no instance of VS is running.  For instance, an example like this:
dte2 = (DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.11.0");
won’t work as there’s no VS instance.
Given all this…and us not wanting to use the older CHM HelpProvider winforms approach, is there any way we can achieve what the package version is doing in a pure Winforms application?
Thanks,
Michael

Hi Michael,
Thank you for posting in the MSDN forum.
Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss:
Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
To help you find more useful information or find the correct forum for this issue, would you mind letting us know more information about it?
It is the WinForm developing issue, am I right?
You said that you use the DTE 2 object, is it related to the VS extension?
>> However, the winform app version can’t get the DTE2 object as no instance of VS is running.  For instance, an example like this:
dte2 = (DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.11.0");
won’t work as there’s no VS instance.
I did some research about it, the following case and document shared some information about the “Get References to the DTE and DTE2 Objects”, it seems that it also shares some information about “Get an instance of the currently running
Visual Studio IDE” like the code here:
// Get an instance of the currently running Visual Studio IDE.
EnvDTE80.DTE2 dte2;
dte2 = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal.
GetActiveObject("VisualStudio.DTE.11.0");
Reference:
http://msdn.microsoft.com/en-us/library/vstudio/68shb4dw(v=vs.110).aspx
Another case:
http://stackoverflow.com/questions/21986644/use-addin-project-in-another-application
If still no help, I might not have the correct detailed answer you need, but I might lead you into the right direction to solve your problem.
If it is the WinForm developing issue, you could select the correct forum here:
https://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winformsdesigner%2Cwinforms%2Cwinformsdatacontrols&filter=alltypes&sort=lastpostdesc
If it is related to the VS extension, maybe this forum would be better for you:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsx
If I have misunderstood this issue, please feel free to let me know, I will help you find the correct forum for this issue as soon as possible.
Best Regards,
Jack
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.

Similar Messages

  • How to use 'help view'uFF1FHELP

    Dear guys:
      I want to use 'help view' to connect tables with 'OUTER JOIN'. For example:With primary table 'SPFLI' and secondary 'SCARR',with each has different airline code of 10 and 18.  I want show all the 18 airlines even if they do not have any flight numbers. I  have tried several times but it also use 'INNER JOIN' to connect each other

    Hi,
    You should use the 'Search help exit' to select the data for yourself from the database. Go into the search help maintenance screen and press F1 on field 'search help exit'; follow the links. There is actually a pretty good documentation.
    Regards, Gerd Rother

  • How to  use Help View  in select options

    i had a chk table in which there are 5 fields  it is assign to a field in other table but when i wnat to c the help i am able to c only 3 fields ..can anyone suggest me why is so ?
    For the above reason i created a view but how to attach it in select - options
    regards
    points will be rewarded for every answer

    i had a chk table in which there are 5 fields  it is assign to a field in other table but when i wnat to c the help i am able to c only 3 fields ..can anyone suggest me why is so ?
    For the above reason i created a view but how to attach it in select - options
    regards
    points will be rewarded for every answer

  • How to Use Transient View Objects to Store Session-level Global Variables

    hi
    Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
    Based on this documentation I created the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
    It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
    Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
    On rollback the Transient View Object instance keeps its row and attribute values.
    Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
    questions:
    - (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
    - (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
    Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
    at http://blogs.oracle.com/smuenchadf/examples/#90
    It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
    This can be illustrate with a small change in the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
    It now shows the result of both these expressions on the page ...
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
    See also the screencast at http://screencast.com/t/k8vgNqdKgD
    Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
    public class MyCustomADFBCDataControl
      extends JUApplication
      @Override
      public void setTransactionModified()
        ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
        Transaction vTransaction = vApplicationModule.getTransaction();
        if (vTransaction.isDirty())
          super.setTransactionModified();
    }Resulting in what seems to be more consistent/expected transaction (dirty) information,
    see also the screencast at http://screencast.com/t/756yCs1L1
    Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
    Currently, question (q2) remains.
    regards
    Jan

  • How to use same view as editable and read only in ADF

    Hi,
    how to use same view as editable and read only in ADF ?? How can we achieve this in TF's ???
    -mrudul

    Hi,
    Steven Davelaar wrote a presentation about this "Building Highly Reusable Taskflows"
    Starting slide 14 is where your use case comes into play
    Frank

  • How to use Database views in XI

    Hi Folks,
    Any idea about how to use Database views for sending and receiving messages in XI ?
    Regards,

    Farooq,
    My doubt is do i have work in the same fashion as if i am working on a Database Table...?
    For Ex :
    Creating Source and Target Data structure for JDBC adapter in the same format....etc
    Regards.

  • How to use help in oracle 10g XE

    Hello,
    I just wanted to know how to use help in sql command line in oracle 10g XE
    regards,
    Sreekanth.

    Hi thankyou very much for the answer, that web-page is very good but....
    I was hoping for answer that would walk me through the help command used in the SQL PLUS like: "help create"
    after i have read few manuals i came to know we can use @hlpbld.sql for building help tables it asks me for entering value 1 and 2, after that it exits the prompt and when i re-login i dont see "help command" working...
    any comments ot procedure to do this...

  • How to create Help views

    How to create Help views in sap

    Hey good day,
    Refer to the following links, it will help you.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed13446011d189700000e8322d00/content.htm
    Help View ?
    Regards and Best wishes.

  • When i update apps on my iphone they need the ID that i used when i downloaded these app and i forgot this ID and a make a new ID how i used the new one to update these apps thanks

    Hello all,
    when i update apps on my iphone they need the ID that i used when i downloaded these apps and i forgot this ID and a make a new ID
    How i used the new one to update these apps?
    thanks

    Your device can hold apps from multiple IDs, but to update them you have to swicth identities which is time consuming. If possible use only the one ID. If you need to reset the password for your old ID visit My Apple ID.
    tt2

  • How do use my ITunes balance to pay for Apps

    How do use my ITunes balance to pay for Apps?

    You just buy what you want.  If you have a credit (balance), it is automatically used before you are billed (if you run over your balance).
    How to manage unused iTunes Gift Card and Gift Certificate balances
    "Each time you purchase content, iTunes will deduct funds from the credit until it's depleted."

  • How to use the iphone 5 s connect the computer?I want copy photo from computer.

    how to use the iphone 5 s connect the computer?I want copy photo from computer.Who can teach me~thank^^

    You can move a photo from the computer to the phone using any of the following:
    iTunes sync: http://support.apple.com/kb/HT4236
    Photo Stream: http://support.apple.com/kb/HT4486
    3rd party apps such as: http://www.photosync-app.com

  • How can I help apple make a itunes and app store in my country?

    The lack of an iTunes store and AppStore in my country(Macedonia) is frustrating, as would many other users agree. My question is not why, but how can I help apple achieve this? How can I help create both the iTunes and App store? I believe that many developers in Macedonia are more than willing to become iOS Developers, and there is a lot of music, books and movies to go around too. Please reply with an answer if and how I can help.
    Thank you in Advance

    Launch iTunes.
    Select iTunes Store in the source list on the left.
    Go to the bottom of the window and click the round flag icon.
    Europe > Macedonia
    Same for the Mac App Store.

  • How to make Help view well on both laptops and desktops

    Hi -- I'm trying to learn RoboHelp 7 and just created my first WebHelp project. I want to show it to a friend, but don't have a server I can publish it to, so I copied all the files onto my flash drive and put it on my laptop. It all works fine, which is a relief -- however, the custom colors are way off, and some of the screenshots are now too big, so the user would have to scroll (which can be annoying). I created it on my desktop and have been looking at it on a larger monitor (1680x1050), but the laptop is old (1024x768). The thing is, a lot of people might have to view it on 800x600.
    I couldn't find any information in RH's Help about how I should have set it up so that it views well on different systems. I'm hoping someone could please advise me as to what I should have done, and if there's anything I can do now to fix it, or point me to some information. I used Arial 10 pt for the text, and now it looks 12 pt. Should I have made it 8 pt? Is there a rule for how large an image should be to be viewed on a laptop and a desktop?
    One last thing, it's too large to put on a CD, so is does anyone know how to make this into an executable?
    Thanks in advance for any help you can give!
    Daryl

    Hi Daryl
    I use an eBook compiler to convert WebHelp to an executable file. You might investigate eBook compilers for that bit. However, I'm not sure how that would help you since a compiler will do little more than to take a swarm of WebHelp files and store them in a wrapper to create a single file. Generally you will end up with something that although it exists as a single file, is larger than what is inside.
    Are you SURE it's too big for CD? CD will hold 650 megs (700 if you buy the extended types).
    On the screen size issue WebHelp itself should adapt fine. Probably it's the images you are concerned with. And the general rule of thumb is to capture images at a reasonable size to begin with. Never EVER just insert a big ole image into RoboHelp and grab the sizing handle to make it smaller. It will still consume a larger amount of space and the quality will suffer badly. So the best approach is to copy the image at a reasonable size to begin with. Something that may fit nicely in the Topic Pane area as it is presented in the space provided by the lowest common denominator. In your case I believe you said that many are still at 800x600.
    Your 10 point text will still be 10 points at a smaller resolution. It will just look a bit different.
    Hopefully this helps... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How to create help view

    hai,
    how to create help view

    Views
    Importance/Use of Views
    Data for an application object is often distributed on several database tables. Database systems therefore provide you with a way of defining application-specific views on the data contained in several tables. These are called views.
    Data from several tables can be combined in a meaningful way using a view (join). You can also hide information that is of no interest to you (projection) or only display those data records that satisfy certain conditions (selection).
    A view is a logical view on one or more tables, that is, a view is not actually physically stored, instead being derived from one or more other tables.
    The data of a view can be displayed exactly like the data of a table in the extended table maintenance.
    Join, Projection and Selection
    CROSS PRODUCT
    Given two tables TABA and TABB. Table TABA has 2 entries and table TABB has 4 entries
    Each record of TABA is first combined with each record of TABB. If a join condition is not defined, the cross product of tables TABA and TABB is displayed with the view.
    Join condition
    A join condition describes how the records of the two tables are connected.
    Inner Join and Outer Join
    The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join.
    With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view.
    With an outer join, records are also selected for which there is no entry in some of the tables used in the view. (ABAP allows left outer join.)
    The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join.
    Projection
    Sometimes some of the fields of the tables involved in a view are not of interest. The set of fields used in the view can be defined explicitly (projection). In our example, Field 4 is of no interest and can be hidden.
    We specify the fields which we need to show in our view by including them under the view flds tab when creating a view in the dictionary.
    +Selection Conditions+
    Selection conditions that are used as a filter can be defined for a view.
    Specifying these conditions under the Selection conditions tab when creating a view in the dictionary would have an effect which is similar to specifying a where clause when writing a select query to restrict data.
    View Types
    Four different view types are supported. These differ in the way in which the view is implemented and in the methods permitted for accessing the view data .
    Database views are implemented with an equivalent view on the database.
    Projection views are used to hide fields of a table (only projection).
    Help views can be used as selection method in Search help.
    Maintenance views permit you to maintain the data distributed on several tables for one application object at one time.
    Database Views
    Database views should be created if want to select logically connected data from different tables simultaneously.
    Database views implement an inner join.
    Application programs can access the data of a database view using the database interface. (Just as we write select queries on database tables, we can write them for views as well.)
    Includes in Database Views
    An entire table can be included in a database view. In this case all the fields of the included table will become fields of the view (whereby you can explicitly exclude certain fields).
    To include one of the tables in the view, enter character * in field View field, the name of the table to be included in field Table and character * again in field Field name on the View fields tab page of the maintenance screen of the view.
    You can also exclude individual fields of an included table. If you do not want to include a field of the included table in the view, enter - in field View field, the name of the included table in field Table and the name of the field to be excluded in field Field name.
    Inserts with Database Views
    If a database view contains only one single table, data can be inserted in this table with the view .
    You have the following options for the contents of the table fields not contained in the view:
    If the field is defined on the database with NOT NULL as initial value, the field is filled with the corresponding initial value.
    If the field is defined on the database as NOT NULL without initial value, an insert is not possible. This results in a database error.
    If the field is not defined on the database as NOT NULL, there will be a NULL value in this field.
    Projection Views
    Projection views are used to hide fields of a table. This can minimize interfaces; for example when you access the database, you only read and write the field contents actually needed
    For the above diagram, fields F3 and F4 are irrelevant, and therefore hidden from the projection view of the table.
    Maintenance Views
    A maintenance view permits you to maintain the data of an application object together.
    The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.
    Maintenance Status
    The maintenance status of a view controls whether data records can also be changed or inserted in the tables contained in the view.
    The maintenance status can be defined as follows:
    Read only: Data can only be read through the view.
    Read, change, delete, insert: Data of the tables contained in the view can be
    changed, deleted, and inserted through the view.
    Read and change: Existing view entries can be changed. However, records
    cannot be deleted or inserted.
    Read and change (time-dependent views): Only entries whose non-time
    dependent part of the key is the same as that of existing entries may be
    inserted.
    Help Views
    Help view is created if a view with outer join is needed as selection method of a search help.
    Help views are used exclusively for search helps.
    A conventional database view selects data from the database using an inner join.
    For a help view however, data is selected using a left outer join.
    Eg-> Suppose table SCARR (Airline master table) has AA – American airlines
    AB – Air Berlin
    AC- Air Canada as three entries.
    Table SPFLI (Flight schedule) has entries corresponding only to airlines AA (American airlines) and AB (Air Berlin).
    Now if a database view were to be used as a selection method for a search help for airlines, we would only get AA and AB as possible entries because the database view implements an inner join…….If however, we were to use a help view as the selection method here, we would get AA,AB and AC as possible entries because a help view would implement a left outer join.
    Restrictions for Maintenance and Help Views
    There are some restrictions for selecting the secondary tables of a maintenance view or help view. The secondary tables have to be in an N:1 dependency to the primary table or directly preceding secondary table. This ensures that there is at most one dependent record in each of the secondary tables for a data record in the primary table.
    Append Views
    Append views are used for enhancements of database views of the SAP standard.
    With an append view, fields of the base tables of the view can be included in the view without modifications. This is analogous to enhancing a table with an append structure.
    An append view is assigned to exactly one database view. More than one append view can be created for a database view.
    The append technique described can only be used for database views. With an append view, only new fields from the base tables contained in the view can be inserted in the view. You cannot insert new tables in the view or modify the join conditions or selection conditions of the view.
    Check out the below related threads
    Views
    views

  • How to use acrobat viewer for java enabled platform

    i want to use any api which can generate automatically pdf files and whose control goes through the java program.
    i found that adobe is providing one zip file(acrobat viewer) for it.it contains some class files.but i dont know how to use it.
    can anybody help me?
    or if u can suggest any free api for this purpose?
    its urgent.i'll be thankful 2 u.

    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=792789

Maybe you are looking for