Quantcast
Channel: Visual Studio Tools for Office (VSTO) forum
Viewing all 5157 articles
Browse latest View live

Disable Share And Export click under file option in 2013 using addins

$
0
0

Hi,

I wrote the WORD addins for Office 2013 using C# and able to handle and catch the event for Save and Save as and print etc.

Now , i wanted to disable the Share and Export option for WORD.i wanted to stick to C# code and not the XML.So just wondering if i  can disable the Share and Export using the ribbon designer. If yes how?

If not, what is the other option.?

My requirement is to disable\enable depending upon the document content. So what i would do it check if the document is secured document, by looking its open file path and then disabling option 'Share' if is it in the secure list (i already got this list).I dont want to disable if it is not. I already wrote Save\Save as which handles this.

regards

Pushpendra


Pushpendra


Visual Studio Enterprise 6.0

$
0
0

Hi,

somebody know where i can download Visual Studio Enterprise 6.0 ?
In microsoft downloads there is'nt

Thank you


Running a SSIS package from SSMS 18.5 on a SQL 2019 Server fails

$
0
0

We are migrating to new SQL Server 2019 Server and when i try to run an ssis package after connecting to SSIS Integration Services and say run package. I get an error To run a SSIS package outside of SQL Server Data Tools you must install standard edition of integration services or higher. Has anyone else experienced similar errors and have any ideas to resolve this error.

It works from VS 2019 

Import a LabWindows/CVI project to visual studio

$
0
0
I am looking for a way to import a LabWindows/CVI project into Visual Studio ... quick googling shows that VS 2008 had a way to do this but I'm not seeing any recent info.  Any suggestions on how to proceed?

SQL Server Reporting Services Report Fails to Load

$
0
0
I am trying to run a report, and when there are 50 records, the report runs for about 5 minutes before it comes up. However, if I run all the records, about 3,000, the page does not load. It gives the error "Report processing has been canceled by the user. (rsProcessingAborted)".  I have already adjusted the settings on SQL Server 2019 Reporting Services to Allow the Report to Run Indefinitely.  Can someone please help?

Angular development in VS 2019

$
0
0

Are there extensions for VS 2019 that I can develop Angular applications similar to VS code environment?

Thanks

Cannot reconnect to SQL (localdb)

$
0
0
Working with Visual Studio C#, ASP.Net Core MVC application for a few months and overnight I am not able to connect to localDb where I've been storing the back end portion of  my work.  When I try run SSMS I am unable to connect to (localdb)/SQlLocalDB.  I receive an error message:

A network related or instance sprficic error occurred whil establishing a connection t Sql Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is confgured to allow remoge connections.  (provider: Named Pipes Provider, error: 40 - Could not open connection to Sql Server) (Microsoft SQL Server, Error: 53)

I don't understand the message nor do I have any idea how to deal with it.  

Any comments or suggestions would be appreciated.

Installing Visual Studio 2015 but Setup package missing or damaged error prevents installation

$
0
0
As said in the title, there seems to be something wrong with my set up for Visual Studio 2015 Community edition with update 3. Everytime I install it, it says setup package missing or damaged error. I keep clicking retry and download from the internet but it does not seem to be making any progress.

CComControlBase::GetAmbientBackColor in VS2017

$
0
0

I am using CComControlBase::GetAmbientBackColor in one of my Activext Control project. 

CComControlBase::GetAmbientBackColor returns RGB(0,0,0) in VS 2017. 

CComControlBase::GetAmbientBackColor returns RGB(240,240,240) in VS 2012. 

May I know that why is it returning RGB(0,0,0) incase VS2017. Have anybody used and suggest regarding same..

Thanks

Mrutyunjaya

Keeping windows form on top within Excel application but not TopMost

$
0
0

I'm trying to convert an Excel VBA workbook to a VSTO Add-in in VB.NET.  In the original (i.e.- VBA) version I have a modeless UserForm (called frmMain) that floats on top and is visible at all times while the user is still within the Excel application, but is not visible if the user moves to another window outside of Excel.

For example, within Excel the user can click on any worksheet tab, select any cell, etc. and the UserForm is still visible.  This is exactly how I want it.

The problem is, that in the new VSTO add-in, I can not get the Windows form to mimick this same behavior.  I use frmMain.Show() to show the form as a modeless form, but the moment the user clicks an Excel worksheet (i.e.- activates a worksheet) the form becomes hidden behind the worksheet.  I can manually Alt-Tab to bring the form back into view, but I need it to always remain in view - floating on top of the Excel worksheets so long as the user hasn't left the Excel aplication.

I tried various things, including setting the form to TopMost, however, that causes the form to be TopMost everywhere - including outside of Excel.  Worse than that, if the user does anything that would normally result in Excel's launching a dialog box (e.g.- closing an open workbook, raising the alert "Do you want to save the changes...") the alert dialog box itself is hidden and inaccessible behind the frmMain form (since the frmMain is TopMost).

How can I get my form to behave in the desired way (i.e.- the same way it did in VBA)?

Thanks!!!

Rob


Rob Shurman

Excel VSTO: iterating through rows according to their properties

$
0
0

I would like to iterate only through not hidden cells in a selection in my Excel VSTO Add-In.

Let's say this selection is the rows 1 until 4000, and there are many hidden rows (by filters). Now I would like to iterate only through the shown rows in the table instead of doing a multiselection (Ctrl+Click). Let's say I have 100 rows shown and that I want to select only 50 of these. A lot of work if I do it using Ctrl+Click

I've tried the following code:

Excel.Range selectedRange =null;foreach(Excel.Range row in myFullRange.Rows){if(!row.Hidden)
        selectedRange =Globals.ThisAddIn.Application.Union(selectedRange, row);}

but it doesn't work: it seems that selectedRange can't be null


Copying a entire document to another in C#

$
0
0

I currently have 5 different templates setup. 4 of them are single pages.  The last one is a combination of all 4 pages in one document.  I have a date picker and a counter to put the dates in the forms in date order, and then copies them to the end of a new document.  It that does a save as, and closes the temp files, and opens the final document. Typically with a full moth worth of dates for volunteer sign ups.

The single page forms all work great.  The 4 page document does not though.   I have tried

Microsoft.Office.Interop.Word.Range dRange = doc.Content;
dRange.Copy();

and

doc.ActiveWindow.Selection.WholeStory();
doc.ActiveWindow.Selection.Copy();

Instead of getting 4 different pages with the date inserted, I get 4 copy's of the first page with the same date, and it is repeated until I get all the dates ran through ending up with 124 pages with 4 copies of each of the first pages. and none of the second, third or fourth pages.  Is there a different way to select an entire document to copy in C# using Interop.Word and have it paste correctly in the new document? Other than that one 4 page document, everything else is working perfectly.

Thanks.
Eric.


Cache not updating

$
0
0
I am using Visual Studio 2017 to create packages for SSIS.  When using the data flow component I find that the list of tables in the SQL database that I can write to is not up to date, and the tables that I can see are not up to date, that is, if I add a new column in a table it will not be visible in VS17.  I have cleared the cache but to no effect.

How to get locale-independent page id in Outlook VSTO?

$
0
0

I get trouble with localization of Outlook VSTO on C#. It has PageChange event:

  1. AppointmentItem item =Inspector.CurrentItemasAppointmentItem;
  2. if(item !=null)
  3. {
  4. Inspector.PageChange+= pageChange;
  5. }

But the PageChange has localized page name as an argument:

  1. privatevoid pageChange(refstringActivePageName)
  2. {
  3. ThisRibbonCollection ribbonCollection =
  4. Globals.Ribbons
  5. [Globals.ThisAddIn.Application.ActiveInspector()];
  6. if(schedulingNames.Contains(ActivePageName))
  7. ribbonCollection.RibbonRooms.buttonRooms.Visible=true;
  8. else
  9. ribbonCollection.RibbonRooms.buttonRooms.Visible=false;
  10. }

I need the list of all localized page names of Scheduling Assistant. I want to be locale-independent and I wonder if there is a map of standard id of page Scheduling Assistant to localized page name. I cannot find it in the MS docs and in Google. Thanks in advance.

What wrong with Visual Studio 2019

$
0
0

 Hello Forum

 I have C# Project  was running OK on Visual Studio 2012 , Not in Visual Studio 2019. I don't know what the Stupid Compiler did  and why Change all the namespace  Name form with  "namespace $safeprojectname$" All the Project it's GONE, have to start new one .

David.



Unable to control visual studio 2017/2019 when screen sharing through webex/teams/skype/zoom

$
0
0

Hi experts,

I am trying to share my screen through skype/webex/teams. When I give control to others, they can see, type in notepad, sql server, they can do everything. But in visual studio 2019/2017, they can simply see the visual studio content but they can't type or right click. It's only happening in the visual studio. All other applications they can control except visual studio. I have seen the properties of visual studio access and gave the full control(read, write and all). I uninstalled, cleared the cache, reinstalled but still no luck. This is happening only to my machine. All my other teammates machines have no issues. Even the tech support guys couldn't help. Please help me.


Change hotkeys with hotkey

$
0
0
Hello, I would like to make it so I could use keys I would normally use to type as hotkeys for text editor functions then switch them off to type. I am looking for a function to change hotkeys from one set to another. Thank you for your time!

how to fix the following issue while installing visual studio 2012 ''3002339 does not apply, or is blocked by another condition on your computer''

$
0
0

how to fix the following issue while installing visual studio 2012

''3002339 does not apply, or is blocked by another condition on your computer''

What wrong with Microsoft

$
0
0

 Never seen mischief like Microsoft Corporation, they planted virus in Visual Studio 2012 , I can make  new Project but in second day if I want to Open the Project it's gone no more in Computer They want to buy Mandatory  Visual Studio 2019 .

 David


Team Foundation Server Integration for Power BI reports

$
0
0

Is it possible to integrate on premise Power BI reports with On Premise Team Foundation server for version control ?

If so, how do we do that? 

Thanks


Asnl

Viewing all 5157 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>