Click here to Skip to main content
15,890,670 members
Home / Discussions / C#
   

C#

 
AnswerRe: Images Pin
Darryl Borden30-Dec-05 3:31
Darryl Borden30-Dec-05 3:31 
GeneralRe: Images Pin
Timothy_198230-Dec-05 4:05
Timothy_198230-Dec-05 4:05 
AnswerRe: Images Pin
Darryl Borden30-Dec-05 3:33
Darryl Borden30-Dec-05 3:33 
QuestionEnsureVisible for Panel Pin
Greeky29-Dec-05 20:50
Greeky29-Dec-05 20:50 
QuestionHow to add IP address in Connection String ???? Pin
Abubakarsb29-Dec-05 20:43
Abubakarsb29-Dec-05 20:43 
AnswerRe: How to add IP address in Connection String ???? Pin
imsathy29-Dec-05 20:55
imsathy29-Dec-05 20:55 
GeneralRe: How to add IP address in Connection String ???? Pin
Dave Kreskowiak30-Dec-05 4:26
mveDave Kreskowiak30-Dec-05 4:26 
QuestionQuestion about Office programing Pin
TofuBug2429-Dec-05 20:37
TofuBug2429-Dec-05 20:37 
Lately since upgrading to VS 2005 TS I've been playing around with the VSTO (the new version that ships with VS 2005) with much success and happiness. However I've run into what I think is a fundamental problem (and it may just be me but I have to ask)

I've created a couple C# Word documents and a couple C# Excel documents each has their own controls they are basically designed for automatic report's, receipts, etc generation without any user interaction.

Now I can run the Word or Excel "program" from VS and it works fine. Also I can open any of the Applicable documents in explorer and they work fine.

my problem is when I try to open them from another project the documents open but the controls are only visualy drawn none of their functionality seems to exist.

I've tried using the Process class to open both Excel or Word and the Documents themselves with the same results.

An example of one of the Excel documents i have is as follows:

when the Excel workbook loads it loads a non visable windows form (as a modal form to lock excel from user input) that when passed a single or a collection of Job's done to include the Job's Title, the hours spent and the Client's name the job was done for it then populates the spreadsheet with the values as well as calulates things like the total money owed for the hours worked, taxes, as well as things like populating clients into a dropdown list control for each job (when there are more than one client assigned to the same job) once the form is finished it closes returning control to the Excel workbook which then displays another windows form to save and or print the file (with a check box option to automate saving (by adding the date and time stamp to a generic filename) and printing.

So in my main program which holds several lists of jobs (which are housed in an sql server database) when the user selects one or a group of jobs from the DataGridView and selects the apropriate Generate Report File Menu option I need the program to load the appropriate Excel or Word document with the Controls intact so I can pass in the information needed.

I'm not sure if I'm completely missing something but I've googled and scoured msdn and i've yet to find an example of loading a compiled office project from another windows application so any help would be greatly appreciated

Thanks Everyone in adavance

Ryan,

I see 57005 people.
QuestionHow to use IP address in Connection String Pin
Abubakarsb29-Dec-05 20:24
Abubakarsb29-Dec-05 20:24 
AnswerRe: How to use IP address in Connection String Pin
Guffa30-Dec-05 2:54
Guffa30-Dec-05 2:54 
QuestionObject reference not set to an instance of an object. Pin
ckruger29-Dec-05 20:24
ckruger29-Dec-05 20:24 
AnswerRe: Object reference not set to an instance of an object. Pin
imsathy29-Dec-05 22:32
imsathy29-Dec-05 22:32 
Questionchange foreColor Pin
abalfazl29-Dec-05 19:50
abalfazl29-Dec-05 19:50 
AnswerRe: change foreColor Pin
VPMahank30-Dec-05 4:10
VPMahank30-Dec-05 4:10 
Questionprotected string to public static string Pin
ckruger29-Dec-05 19:14
ckruger29-Dec-05 19:14 
AnswerRe: protected string to public static string Pin
imsathy29-Dec-05 20:09
imsathy29-Dec-05 20:09 
Questionwant to open a single copy of a form on a event Pin
imsathy29-Dec-05 19:00
imsathy29-Dec-05 19:00 
AnswerRe: want to open a single copy of a form on a event Pin
Maqsood Ahmed29-Dec-05 20:29
Maqsood Ahmed29-Dec-05 20:29 
GeneralRe: want to open a single copy of a form on a event Pin
imsathy29-Dec-05 20:44
imsathy29-Dec-05 20:44 
Questionhow can i call hook function to a specified window , if the window is activated ...? Pin
pradpb99929-Dec-05 18:18
pradpb99929-Dec-05 18:18 
Questionlogin window Pin
picasso229-Dec-05 12:47
picasso229-Dec-05 12:47 
QuestionOLDB CONNECTION Pin
faviochilo29-Dec-05 12:05
faviochilo29-Dec-05 12:05 
QuestionCreating similar Forms Pin
rnvrnv29-Dec-05 11:17
rnvrnv29-Dec-05 11:17 
AnswerRe: Creating similar Forms Pin
Michael Flanakin29-Dec-05 12:35
Michael Flanakin29-Dec-05 12:35 
GeneralRe: Creating similar Forms Pin
rnvrnv29-Dec-05 21:47
rnvrnv29-Dec-05 21:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.