Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default using excel from dotnet

situation:
I'm working on a new app in vbexpress 2008 using acad com interop
Also need to write extracted data to excel.

problem:
At home(laptop) i have excel 10. At the office excel 12.
(both seem to have excel5 listed in refs.)

I need to work at both locations.
can i reference both 10 and 12 in the same vbproj (i think not)

can i just reference 5 and is that just an older version with common (but
not the latest) interface?

i guess i can just have 2 vbproj files (one on laptop one at work) and just
copy the .vb class files that are being edited back and forth, not copy the
vbproj file back and forth?

I think the dotnet project is dynamic(using actual disk copy of files when
opened) - as opposed to vba which copies the disk file contents into the dvb
and then the disk files are not updated when the modules in the dvb are
edited unless you do a manual export? so i think just updating the .vb files
should work fine?

any tips?
thanks
mark


  #2   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default using excel from dotnet

You should use XP PIAs:

http://support.microsoft.com/kb/328912

and reference them from your project - this way your application will run
just fine on any PC that has XP or later Office

Hope this helps

"mp" wrote:

situation:
I'm working on a new app in vbexpress 2008 using acad com interop
Also need to write extracted data to excel.

problem:
At home(laptop) i have excel 10. At the office excel 12.
(both seem to have excel5 listed in refs.)

I need to work at both locations.
can i reference both 10 and 12 in the same vbproj (i think not)

can i just reference 5 and is that just an older version with common (but
not the latest) interface?

i guess i can just have 2 vbproj files (one on laptop one at work) and just
copy the .vb class files that are being edited back and forth, not copy the
vbproj file back and forth?

I think the dotnet project is dynamic(using actual disk copy of files when
opened) - as opposed to vba which copies the disk file contents into the dvb
and then the disk files are not updated when the modules in the dvb are
edited unless you do a manual export? so i think just updating the .vb files
should work fine?

any tips?
thanks
mark


.

  #3   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default using excel from dotnet

Thank you! I wasn't aware of those.
I see two options oxppia.exe
and
PrimaryInteropAssembly.exe
description sounds similar except one says redistributable and appears to
have installation instructions.
Do you know the difference? how to decide which to use?
mark


"Sergey Poberezovskiy" wrote
in message ...
You should use XP PIAs:

http://support.microsoft.com/kb/328912

and reference them from your project - this way your application will run
just fine on any PC that has XP or later Office

Hope this helps

"mp" wrote:

situation:
I'm working on a new app in vbexpress 2008 using acad com interop
Also need to write extracted data to excel.

problem:
At home(laptop) i have excel 10. At the office excel 12.
(both seem to have excel5 listed in refs.)

I need to work at both locations.
can i reference both 10 and 12 in the same vbproj (i think not)

can i just reference 5 and is that just an older version with common (but
not the latest) interface?

i guess i can just have 2 vbproj files (one on laptop one at work) and
just
copy the .vb class files that are being edited back and forth, not copy
the
vbproj file back and forth?

I think the dotnet project is dynamic(using actual disk copy of files
when
opened) - as opposed to vba which copies the disk file contents into the
dvb
and then the disk files are not updated when the modules in the dvb are
edited unless you do a manual export? so i think just updating the .vb
files
should work fine?

any tips?
thanks
mark


.



  #4   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default using excel from dotnet

I will try the PrimaryInteropAssembly.exe
Is there a best use practice for where to install them? Windows\System32 ?
I presume if they are compiled into a net dll they don't need installed on
user machines, just the developer machine?

thanks
mark

"Sergey Poberezovskiy" wrote
in message ...
You should use XP PIAs:

http://support.microsoft.com/kb/328912

and reference them from your project - this way your application will run
just fine on any PC that has XP or later Office

Hope this helps

"mp" wrote:

situation:
I'm working on a new app in vbexpress 2008 using acad com interop
Also need to write extracted data to excel.

problem:
At home(laptop) i have excel 10. At the office excel 12.
(both seem to have excel5 listed in refs.)

I need to work at both locations.
can i reference both 10 and 12 in the same vbproj (i think not)

can i just reference 5 and is that just an older version with common (but
not the latest) interface?

i guess i can just have 2 vbproj files (one on laptop one at work) and
just
copy the .vb class files that are being edited back and forth, not copy
the
vbproj file back and forth?

I think the dotnet project is dynamic(using actual disk copy of files
when
opened) - as opposed to vba which copies the disk file contents into the
dvb
and then the disk files are not updated when the modules in the dvb are
edited unless you do a manual export? so i think just updating the .vb
files
should work fine?

any tips?
thanks
mark


.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel-called Dotnet DLL is using wrong Framework Tim Zych Excel Programming 1 November 23rd 07 07:33 PM
updating Excel from DotNet Lisa[_11_] Excel Programming 0 August 19th 04 06:17 PM
Excel 2003: custom function with dotnet Thomas Mutzl Excel Programming 2 December 11th 03 11:38 AM
Excel - DotNet - Variant Arrays as Params Paul S Bryant Excel Programming 7 December 3rd 03 11:18 AM
Excel Workbook opened twice with dotnet interop Steve Weixel Excel Programming 0 August 25th 03 11:37 PM


All times are GMT +1. The time now is 02:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"