There has to be a better method than what I'm doing to merge two word documents. I'm hoping someone can point me towards that method.
I'll show the code in a bit here, but first an explanation. I have an existing Word.Document, this code is inside the class that is responsible for creating it...
If I understand your question, then it's not too tough. All the rows in your detail view ListBox are considered ListViewItems. ListViewItems have a "subitems" property that lets you easily get at the "columns".
So, for example,
ListViewItem yourVar = YourListView.Items[0]...
I'm sorry, I can't really test this right now, but here's an idea just in case you need one in a hurry. I imagine that the KeyDown, KeyUp, and KeyPress events don't fire when you programatically insert text into a text box, but will fire when a user is entering text.
Basically, what I'm saying...
OK, I've got it working (just in case someone else decides to search the threads for something similar).
It's a bit of a hack, as it can require some prep work in MS Office to insert fully custom text. I imagine there's a way you could fully automate it using this method if you dynamically...
Thank you as well Bobisto. Yesterday I looked into running a macro placed in the normal template for Office, and had some problems there as well. It doesn't seem like the "right" way to do it anyway, but I had issues with the fact that creating the document through automation I couldn't find a...
JCruz,
Thanks for the links. I actually have already looked at that first page, which allows me to insert the number of pages a document has into a Word Document. It's not treated as a "field", that is, it's just text. If the number of pages were to change, it would not update.
That second...
I'm a little confused as to your answer.
Are you saying that I should ask in the VBA forum because I'll need to do some macro coding in Word, and then run the macro?
Or are you thinking that I'm trying to code this in Word? I'm working in C#. Hmm, here's some sample code.
WordTool wordReport...
Yes, it is the multiselect property that should do what you are looking for. Here's some example code that opens up a OpenFileDialog and allows a use to select multiple files, then adds them to a listbox named lstAdditionalFiles.
OpenFileDialog myDialog = new OpenFileDialog()...
Hi all,
I'm having a hard time figuring out how to add page numbers to a word document. The document is generated just fine, everything is working except that I have not been able to figure out how to put page numbers on it.
I can post some sample code if anyone wants it, but I think it would...
Thought I'd jump in on the discussion, as I used to write in VB6 and now write in C#...I find that the try/catch/finally method of error handling is much more useful than the old On Error methods.
I know that try/catch method supports nesting, which can be very nice. It was my experience that...
I'm a bit of an inexperienced programmer myself, so I'm slightly cautious about making a suggestion, but I thought I might as well try to help...
If the renderer you're working with is a user control then making your own custom events isn't too complicated. Add a property to the form that looks...
SemperFi,
Yeah, I know it sounds like that. But I, uh, promise I'm not!
It's actually like a shell for the OS...so I can track what is happening on the machine. I don't want tasks or applications started without going through my shell.
Can you detect API events with a system hook? Is that...
Hi,
I would like to detect when an application is started. It doesn't matter what the application is, I'd like my application to be able to react to any application/process opening. I imagine I want to tie into the API event for starting applications. I'm dealing with Windows XP Home, if that's...
Hi,
I've got a slider control used to adjust the screen resolution. I use the slider control values 0-3 to correspond with the screen resolutions 800x600, 1024x768, 1280x1024, & 1400x1050 respectively.
The problem is that when the slider control is adjusted, it shows the value of the slider...
Hello,
I'm writing an application that simulates a Windows desktop. The user selects a background and that background image is painted to a form -- the image is either stretched to fit the screen or centered on the screen. I use the PaintPicture method to put the image on the form...
Hi Darrylle,
I've noticed the same thing -- leaving the key value off of a subform can cause problems.
But unfortunately, I don't think that's the problem this time. I've tried binding a text box to the Parent Forms Primary Key with no luck. In fact, every time I add a record I reset the value...
I figure this must be a common problem, but I haven't found any information on it in the forums.
I have a standard form/subform setup, where my subform displays each of the many records found for the current record found on the primary form. The relationship is defined in the Relationship...
Thanks to both of you. I'm actually going to end up implementing both solutions -- I'll temporarily use braindead's idea to display a list of acceptable values until I can customize wemeier's solution enough to insert a value into a text box for the user.
FYI, wemeier, I was talking about...
Is there a function in Access that will allow you to retrieve field information if given a column name and a row number?
I've got a table that stores a "series of values" (along with other info about them) like these:
LO1341
LO1342
LO1344
LO1347
etc.
I need some way of searching...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.