LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Problem with Excel using a .Net rich text box

The scenario indicates everything works fine from within
an IDE or other programmed environment making a call to
Excel, but fails when Excel is responsible for the
execution. I don't have anything specific, but... I've
done some of these and there is a trust issue that
complicates development where Excel does execution from a
macro. It may be tied to that. Assuming you want a non-
specific instance created, I can't think of a work around
off the top of my head. Hope this is a direction you can
use...

E.

-----Original Message-----
Hello,

I have a feeling that this one is going to be difficult

to solve but here it
goes:

I have a form in built in a .Net DLL that uses the Rich

Text Box from the
1.1 framework. When I run the form from a .Net

application there are no
problems. When I run the form from a VB6 application

there are no problems.

However, if I run the from from an Excel macro, I get a

strange problem
where the property for "SelectedFont" is always null no

matter what you set
the font to (not just in situations where the selected

text contains
multiple fonts).

I have attached a sample VS.Net solution to demonstrate

the problem. If you
set the startup project to the WinApp program and run it,

it will work
properly. If you set the startup project to the RTBTest

DLL and set the
project to launch the program "VB WinApp.exe" included

with that project it
will run properly (press the button on the form to bring

up the .Net form
with the RTB).

If you set the startup project to the RTBTest DLL and set

the project to
launch Excel with a command line argument of the included
"TestWorksheet.xls" it will lauch a workbook that has a

single button on it
to press to get to the .Net form in question. However, on

this form you will
see that the RTB SelectedFont property is always null

regardless of what is
selected.

Can you please tell me why this is and what I can do to

get it to work
properly?

Kind regards,
Bryan





 
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
rich text box in forms ed.ayers315 Excel Discussion (Misc queries) 0 January 20th 10 02:33 PM
Rich Text Boxes SueDot Excel Worksheet Functions 2 May 18th 09 05:00 PM
Are there Rich Text Text Boxes Emory @ CFW Excel Discussion (Misc queries) 1 May 31st 06 03:52 AM
Microsoft Rich Text Box registration raypayette Excel Discussion (Misc queries) 0 December 29th 05 09:25 PM
Rich Text Control will not load in Office VBA apps. Julian Milano Excel Programming 1 June 14th 04 01:18 PM


All times are GMT +1. The time now is 09:43 PM.

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

About Us

"It's about Microsoft Excel"