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

Excel 2013, 2016 both 32-bit stopped working.. KB3105213 issue

$
0
0

After another Microsoft update: https://support.microsoft.com/en-us/kb/3105213, my VSTO Excel project stops working.

At this moment it's only on Windows 10, and MS Excel 2013 and 2016 with the latest updates and also both 32-bit. 

Here is what happens: after pressing button on the ribbon program calls a Form and it's over..: prntscr.com/97hs6a

And from windows logs Excel 2013: 

Faulting application name: EXCEL.EXE, version: 15.0.4771.1000, time stamp: 0x561cc5bc

Faulting module name: mscorwks.dll, version: 2.0.50727.8670, time stamp: 0x5604911f

Exception code: 0xc0000409

Fault offset: 0x00009d8d

Faulting process id: 0x1784

Faulting application start time: 0x01d128fbce454a30

Faulting application path: C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE

Faulting module path: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll

Report Id: 5f962002-58e5-4b9b-82cf-7861ff33c940

Faulting package full name:

Faulting package-relative application ID: 

------------------------------------------------

From windows logs Excel 2016:

Sugadintos taikomosios programos pavadinimas: EXCEL.EXE, versija: 16.0.6001.1038, laiko žyma: 0x563492ff

Sugadinto modulio pavadinimas: mscorwks.dll, versija: 2.0.50727.8670, laiko žyma: 0x5604911f

Išimties kodas: 0xc0000409

Sugadintas poslinkis: 0x00009d8d

Sugadinto proceso ID: 0x17ac

Sugadintos taikomosios programos paleidimo laikas: 0x01d128e33e7b00fd

Sugadintos taikomosios programos kelias: C:\Program Files (x86)\Microsoft Office\Root\Office16\EXCEL.EXE

Sugadinto modulio kelias: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll

Ataskaitos ID: 92604d0f-94d6-11e5-8d76-78acc0c176af

Sugadinto paketo visas pavadinimas: 

-------------------------

If i manually uninstalled KB3105213 and restarted PC, my it works Fine!

The code looks:

http://prntscr.com/97i3cz

I made a change to:

http://prntscr.com/97i2v5, and it works with KB3015213 and without!

The only stress that now i need to deploy this to all clients, and this form was created more than one year ago...


including an earlier outlook version reference

$
0
0

hi,

i am creating and excel vsto add-in in VS 2013 community. and in one module i automate outlook object modek. to do this, i added the outlook 2013(version 15.0) reference. but i want to add outlook 2007, whid doesnt appear in the list. i onyl have office 2013 installed o my pc. 

how could i include the outlookf 2007 as reference without installing the office 2007?


Dig your well before you are thirsty

Migrating VSTO Project From VS 2015 To VS 2013

$
0
0

Hi,

I've been developing a vsto Add-in project with Visual studio 2015 Professional, my trial version has just expired. I there a way for me to continue working on my project without purchasing VS? (Im close to the end and will no longer need VS).

I have VS 2013 Express for windows, and for web. Im unable to open the 2015 project on either of them but am wondering is there a way for me to migrate the project to one of them?

I have Microsoft Office 2010, Windows 10 OS.

Thanks,

Bobio

Does Office 356 support AddIns designed for regular office apps

$
0
0
I am working on an Addin for MS Word. I have tested it on versions 2010 and 2013 and it works well. But I would like it if it also worked on Word on Office 365. So, the question is do Addins designed and tested for the "regular" office work on Office 365?

selam alazar simachew


Office 2016 - PIA Component IDs

$
0
0

Hi,

What's the Component IDs for Office 2016 Shared PIA and PIAs for the individual applications (Excel, Word etc.)?

I need them to create launch conditions in a Visual Studio Setup project.

Thanks,

Trushar

VB.NET: Release of COM Objects in Child Functions?

$
0
0

Hi,

I am currently doing something in PowerPoint. Now if I pass a shape (COM-Object) to a child function I have two questions:

1. I can't discover any difference if I pass it ByVal or ByRef. Is there any difference in this case at all? How would I notice that? From what I know so far my logic would tell me, that if I pass the shape ByVal a new COM-Object is instantiated or the counter of the RCW is increased by one - where as if I pass it ByRef no such thing happens. Is that right?

 

2. Now after the child function has done something with the shape, I continue to work with that shape in the main process. In this case I can not release it at the end of the child function because then I get the error: "An object that has been released from it's underlying RCW can not be accessed anymore." in the main process. That is fine, BUT if I do not release it within the child function I can't release it at all, right? How do I best deal with that, in order not to get any memory leaks or to have any unreleased COM-Objects at the end of my process?

 

Many thanks to help my understanding.

create custom folder view pane using vsto

$
0
0

Hello,

I'm new to vsto and trying to customize the folder view pane.

I used outlook form regions but it is appearing in the reading and the new inspector window.

Any help is appreciated,

Thanks in advance.

Shyam

Seaching technical documentation for AutoShape 39 Adjustments?

$
0
0

Hi,

I am currently coding something for PowerPoint. I am having difficulties to understand the values given by the adjustments (Item (2) and Item (3)) of AutoShape No. 39 and 40.

Could you please tell me where I can find the technical documentation of these adjustments. With most of the other Shape.adjustments it was easy to find out by myself but this one is different. But certainly to check my work on the other autoshapes their documentation about adjustments would be helpfull as well.

Thanks for the right link.

Many thanks to guide me to the right docuemtns - SORRY, I was not able to find it on msdn --> documentation.


Excel VSTO add-in : Exact tools needed / Deployment

$
0
0

Hi guys

I have a noob's question. Sorry for that.

I have Visual Studio Ultimate 2013 Update 5.

And I have a solution created in Visual Studio 2010 with VSTO add-in for Excel.

The add-in is something heavy and big, it parses logs in predefined format and creates Excel reports from them. The add-in references Microsoft.Office.Interop.Excel.dll version 14.0.0.0.

The .NET Framework 4 is used.

My current task is to transfer this solution to Visual Studio 2013. (From now on developers will use it, 2010 goes to trash without support...) And the other thing is that up until now customers used the add-in for Excel 2010. Now they start to use Office 2013.

So, my questions are:

Is it possible to create an add-in that will work both in Excel 2010 and 2013?

Which version of Microsoft.Office.Interop.Excel.dll should I reference?

When referencing Microsoft.Office.Interop.Excel.dll do I need to set "Specific Version" to false?

When referencing Microsoft.Office.Interop.Excel.dll do I need to set "Embed Interop Types" to true?

Is it correct to assume that interop code that worked for 2010 will work for 2013 as is? If not - how do I identify problematic code?

What should I deploy on client machine? Do I need to care which version of Excel the client has or the deployment is regardless the version? (2010 or 2013)

Many thanks :)

Minimum VSTO runtime version targeting the .NET 4.5.2 Framework

$
0
0

Hi,

I am developing an Outlook Add-in using c# on .NET 4.5.2. I wanted to know what is the minimum version of the VSTO runtime that is needed, which will work on .NET 4.5.2.

I know there are many versions under VSTO 4.0, but i need the exact minimum version like 10.0.40820 or 10.0.60724 etc. Is there any page or wiki where I can have a look at all the VSTO runtimes released till date? That would be great.

Regards, Kiran

Something Error Selection.Paste in Word

$
0
0

Hi!

i'm coding some vsto project. some problems shows.

i copy some ranges in excel use range.copypicture() method,when i paste it into word  application ,sometime it will get an error,break early or later。just like the old version's .net framework,the clipboard is  listened by other application then throw the exception(but i use the .net 4.6 now-_-!),the circulation won't be finished

 Dim wordapp As New Word.Application
Dim doc As Word.Document = wordapp.Documents.Add
wordapp.Visible = True
doc.Paragraphs.Alignment =Word.WdParagraphAlignment.wdAlignParagraphCenter

                For Each value In SiteName
                    ws = wb.Sheets(value)
                    rng = ws.Range("A1").CurrentRegion
                    rng.CopyPicture()

                    wordapp.Selection.Paste()

                Next

what's the problem? and how can i fix it.


How to install Add-In without prompting the end user to make a trust decision?

$
0
0

I'm creating an Add-In for Outlook 2010/2013 with Visual Studio 2015. I'm signing the project with a .pfx certificate, which is a code-signing certificate purchased from a certification center.

I don't want that the "Microsoft Office Customization Installer" will appear on starting Outlook after installation of my Add-In. Whats wrong with my certificate that the solution will not be automatically installed without prompting the end user to make a trust decision? Or do I have to change some other things?

Also why is the publisher name, which is displayed in Outlook in File -> Options -> Add-Ins, shown as "<none/not available>"? In the "Microsoft Office Customization Installer" the publisher is correctly shown..

Where to find Office 2013/ PIAs for install

$
0
0

Hello,

Where do we find the Office 2013 Primary Interop Assemblies for distribution?

I'm developing a C# DLL and when run the DLL on Server it returns:

- object reference not set to an instance of an object.

It Works fine on mi machine, but i have VS and Office instaled.

I already instal in ther SERVER:

- Microsoft Office 2010 PIA

- Microsoft VS 2010 Tools for Office RuntimeOffice Runtime x64

But that dosen't fix the problem.

I can't find PIA for Office 2013, whati read, i think it's what miss.

Can you help me.

Best regards,

João Pereira


João Pereira

Force Outlook Add-In to Reload..

$
0
0
Hi All,
I have an outlook add-in that auto updates (not using click once, but my own code) local files are over written just fine, but I need outlook to re-load the add-in for the changes to take effect. How can this be acheived? Are there any registry keys I can change to trigger this event?

Any suggestions would be greatly appreciated.

how to highlight word sequencewise when given style is present using vsto c#

$
0
0

Hi,

Can any one help me?

Please.....



Determine centrally if vsto addin is active or not (VSTO, Office 365)

$
0
0

Hello,

we have an addin which is installed on many clients at a customer. The addin was rolled out with a software distribution program. Most of the times the addin works and loads correctly but on some clients there are problems where the addin gets is not loaded due to either configuration issues in office or office creates a key in hkcu with loadbehaviour=2 (addin is registered in hklm) which overwrites loading in hklm.

Has anybody an idea how to tackle the problem to determine automatically if the addin is loaded correctly or not. My first idea would be a set of scripts to check if loadbehaviour is set correctly to 3 and no load behaviour is set in hkcu.

Or are there better and easier approaches?

Thank you very much


Regards Mark


Excel 2013 and 2016 VSTO Workbook Project doesnt start/load

$
0
0

Hello,

I am trying to create a Excel 2013 and 2016 VSTO Workbook Project for Excel 2013.

However, I cant seem to get any of the code to execute.

I tried to create a ribbon but the buttons dont display.

Even if I create a brand new project and try to step into the code, nothing executes.

Ive tried disabling all other add ins and running in safe mode but to no avail.

I am using Excel 2013 and VS 2015 community.

My colleagues with VS 2013 professional has tried as well with the same results.

Any help is much appreciated.



Defer Delivery Email Rule - Email will stay in the outbox (Sent-Date is null)

$
0
0

Hi together,

In my Outlook 2013 (and tested on Outllok 2010) I hava a rule for Defer Delivery for all my outgoing emails.

When I send a new Email it is placed in the outbox, with a Sent-Time in the future, that is fine.

When I touch the email (only mark it by clicking) the email is marked as read and the sent-time will switch to null (and the email will never send).

Background:

We have delevloped a custom addin which parses emails and detect links inside. When my addin is disabled everything works fine.

has some of you any idea to solve this? Thanks a lot

Form Region Windows Registry

$
0
0

Greetings, 

I followed the steps shown in Specifying Form Regions in the Windows Registry to register a form region, however when the addin runs i'm getting a System.NullReferenceException for the form region. 

I'm adding the registry key via the installer, which seems to create the registry key fine under HKEY_CURRENT_USER but it refuses to add it under Current_Machine for a reason or another. adding it in any of them should be fine as the article says. 

What could've went wrong, why my form Region is being assigned to null ? 

Thanks.

math equation

$
0
0
Am developing VSTO application that will export from word to xml. I also used XSLT. When I used the math equation in MS Word, at time (not every time), some xml will have some naughty characters like a small square box. What do I do.
Viewing all 5157 articles
Browse latest View live


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