|
with hope I've got what you meant - this is my problem:
each file name is at least 25 characters, and the business I have to do inside is actually a bit of work... and it takes time..
Do you have any other idea?
Thanks!!
Sarah
|
|
|
|
|
If you have to do a lot of processing I suggest you use threads for that so that the event handler exits as soon as possible.
|
|
|
|
|
Perhaps it doesn't mean long file name, or hard business, but it worked!!!!!!
Which internal side are you recommend to init the buffer (I multiplied it - the value before was like 8912...)?
Thanks!!!!!!!
|
|
|
|
|
Hi,
I have a report that runs fine in crystal and windows but can't be displayed in web.
The error message as follows "One or more fields could not be found in the result set. Use Verify Database to update the report. Error in File C:\Temp\ProformaVariance {AA4C529B-2790-489C-88F9-00F51695F436}.rpt: The rowset column could not be found. "
I'm using Crystal report version 11.5.0.313
Can any one help me on this.
Thanx in advance.
Seenivasan
Long Live
|
|
|
|
|
Hi all,
I’m a C++ developer and a very beginner in both C# (.Net) and Word Programming. What my company wants next is something like this: from different texts to build a Word 2007 document and then open this in the real Word 2007 application to give the user the possibility to change the document as usual with all possibilities (Menüs, Panels, etc.). Well my problem is that the Word 2007 must be embedded in our C# - Application (WinForms).
Knows somebody a solution to do this: embed the Word 2007 application in WinForms or if better maybe in WPF? For any idea thank you in advance.
Best Regards,
Emil
|
|
|
|
|
I don't think you can embedd it. I do believe you can run/control it, using the Office Toolkit, or whatever they call it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
The interop stuff is pretty straightforward. Look up Microsoft.Interop.Office.Word in google. Anything you can do in MS Word, you can do in C# using the interop libraries. One tip - if you're going down this route - do what you want first in MS Word, recording it as a macro. Then 'edit' the macro. You can almost cut'n'paste the macro code into your C# app.
We violated nature and our children have to pay the penalty
Don't go near the water children... Johnny Cash - 1974
|
|
|
|
|
hi all .
i wount to create (mdf) and (ldf) file name when I Create Backup File DateBase by C#.Net Code
who i can do it ?
thanks for any body hellp me
Thaer
|
|
|
|
|
Like I told you yesterday, C# does not know the file format used for database backups, therefore it cannot restore them unless you know the format well enough to write a decompression algorithm.
If you do, please write an article about it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I have a problem triying to save the mails retrieve from server in a format that outlook can open, i can save in a txt plane format, but i dont know how to save in an outlook format, somebody can help me or tell me any solution? thanks in advance
|
|
|
|
|
Out look stores all it's mail in one big monolithic file. Your best bet is probably to read the mail but leave it on the server, so outlook can still retrieve it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Users should connect to a web page, which show the message their required, im thinking that is not possible do this goal without having outlook install in the server is this correct?
|
|
|
|
|
Hi there.
I am trying to create a step by step wizard, for a Windows Mobile 6.0 PDA.
I have used forms as the steps.
In my mainform I have a method that finds the next step from an array. There are three types of steps, and each steps can appear more than once in one session.
When the last step is finished, the first step will be shown again.
In an earlier program, I used panels as my steps, but it was a little difficult to manage each step in the same form window.
In my new version, I am trying to use forms instead, but every time i click next, I can see a short blink, of the programs running in the background.
When i click the next step button in the current step, the following code is used:
mainForm.ShowNextStep();
this.Close();
ShowNextStep finds the next step and use nextStep.ShowDialog();
Is there anything I can do, so i wont see those short blinks, without using panels?
|
|
|
|
|
You should use user controls, and place them all on the one form. I guess that's what you mean by panels ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I used panels as before, thats why i wanted to change it to forms..
I never thought of using usercontrols..
So i will try that..
I am not really expericed in using those.
Can u tell my how to place them and navigate through steps?
|
|
|
|
|
Never mind, I found out
Thanks for a fast and great answer
|
|
|
|
|
Hi,
I am running the .net 2.0 code below in windows server 2003 R2, standard edition, service pack 2.
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\Data.xls;Extended Properties=""Excel 8.0;HDR=YES;""";
DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb");
Error is:
Error 4 The type or namespace name 'DbProviderFactory' could not be found (are you missing a using directive or an assembly reference?)
I have tried adding The following dlls but error still remains:
Interop.Excel.dll
Microsoft.Office.Core
What references do I need to add to get this to work?
Thanks
|
|
|
|
|
|
added
using system.data.common
and it now compiles.
Thanks
|
|
|
|
|
You are welcome
|
|
|
|
|
Hi,
I have a problem with Grid view. My client required to click anywhere the grid view row and edit the contents, instead of using Edit button which is combined with Grid view. They don’t want to see the edit button .they want only to click the gridrow and it shoud be turned to edit mode.any one have the idea about this. Please help me!!
Rcnair
|
|
|
|
|
I am trying to check if a picture box control is enpty. I tried
if (picturebox.Image = null)
{
.......
.......
}
but I get an error stating that "connot implicitly convert system.drawing.image to bool" any idea how I can work around this?
a novice
|
|
|
|
|
In c# = is an assignment operator, while you need comparison operator.
|
|
|
|
|
Hi
I'm developing a small desktop client and I'm using the Offline Application Block. When I run my application (both in Debug and Release mode) in Visual Studio 2005 it works fine, but when I publish my application it won't run. I hope someone out there can point me in the right direction since I'm having a hard time finding a solution.
The error:
<br />
Timestamp: 05-02-2008 08:23:14<br />
Message: HandlingInstanceID: 6dadd0fb-233b-44ba-829e-fb4963a24de1<br />
An exception of type 'System.Reflection.TargetInvocationException' occurred and was caught.<br />
-------------------------------------------------------------------------------------------<br />
02/05/2008 09:23:14<br />
Type : System.Reflection.TargetInvocationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
Message : Exception has been thrown by the target of an invocation.<br />
Source : mscorlib<br />
Help link : <br />
Data : System.Collections.ListDictionaryInternal<br />
TargetSite : System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)<br />
Stack Trace : at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)<br />
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)<br />
at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)<br />
at Microsoft.Practices.ObjectBuilder.CreationStrategy.InitializeObject(IBuilderContext context, Object existing, String id, ICreationPolicy policy)<br />
at Microsoft.Practices.ObjectBuilder.CreationStrategy.BuildUpNewObject(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
at Microsoft.Practices.ObjectBuilder.CreationStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
at Microsoft.Practices.ObjectBuilder.SingletonStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
at Microsoft.Practices.ObjectBuilder.TypeMappingStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)<br />
at Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)<br />
at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)<br />
at Microsoft.Practices.CompositeUI.Collections.ServiceCollection.BuildFirstTimeItem(Type typeToBuild, Type typeToRegisterAs, Object item)<br />
at Microsoft.Practices.CompositeUI.Collections.ServiceCollection.Build(Type typeToBuild, Type typeToRegisterAs, Object serviceInstance)<br />
at Microsoft.Practices.CompositeUI.Collections.ServiceCollection.AddNew[TService,TRegisterAs]()<br />
at BI2ActiveSalesClient.Infrastructure.Library.SmartClientApplication`2.AddServices()<br />
at Microsoft.Practices.CompositeUI.CabApplication`1.Run()<br />
at BI2ActiveSalesClient.Infrastructure.Shell.ShellApplication.RunInReleaseMode()<br />
<br />
Additional Info:<br />
<br />
MachineName : XXXXXXXX<br />
TimeStamp : 05-02-2008 08:23:14<br />
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null<br />
AppDomainName : DefaultDomain<br />
ThreadIdentity : <br />
WindowsIdentity : XXXXXXXXXXX<br />
Inner Exception<br />
---------------<br />
Type : System.TypeInitializationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
Message : The type initializer for 'Microsoft.ApplicationBlocks.Cache.CacheManager' threw an exception.<br />
Source : Microsoft.ApplicationBlocks.Cache<br />
Help link : <br />
TypeName : Microsoft.ApplicationBlocks.Cache.CacheManager<br />
Data : System.Collections.ListDictionaryInternal<br />
TargetSite : Microsoft.ApplicationBlocks.Cache.CacheManager GetCacheManager()<br />
Stack Trace : at Microsoft.ApplicationBlocks.Cache.CacheManager.GetCacheManager()<br />
at Microsoft.ApplicationBlocks.SmartClient.Offline.OfflineBlockBuilder..ctor()<br />
at Microsoft.ApplicationBlocks.SmartClient.Offline.OfflineBlockBuilder.get_Instance()<br />
at BI2ActiveSalesClient.Infrastructure.ConnectionModule.Services.ConnectionManager..ctor()<br />
<br />
Inner Exception<br />
---------------<br />
Type : System.TypeInitializationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
Message : The type initializer for 'Microsoft.ApplicationBlocks.Cache.CacheService' threw an exception.<br />
Source : Microsoft.ApplicationBlocks.Cache<br />
Help link : <br />
TypeName : Microsoft.ApplicationBlocks.Cache.CacheService<br />
Data : System.Collections.ListDictionaryInternal<br />
TargetSite : Microsoft.ApplicationBlocks.Cache.CacheService GetCacheService()<br />
Stack Trace : at Microsoft.ApplicationBlocks.Cache.CacheService.GetCacheService()<br />
at Microsoft.ApplicationBlocks.Cache.CacheManager..ctor()<br />
at Microsoft.ApplicationBlocks.Cache.CacheManager..cctor()<br />
<br />
Inner Exception<br />
---------------<br />
Type : System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
Message : The XML configuration document is invalid, the ScavengingInfo section defines a type (assembly: 'Microsoft.ApplicationBlocks.Cache', type 'Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging') which an instance can't be created.<br />
Source : Microsoft.ApplicationBlocks.Cache<br />
Help link : <br />
Data : System.Collections.ListDictionaryInternal<br />
TargetSite : Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm CreateInstance(Microsoft.ApplicationBlocks.Cache.CacheService, Microsoft.ApplicationBlocks.Cache.ICacheStorage, Microsoft.ApplicationBlocks.Cache.ICacheMetadata)<br />
Stack Trace : at Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(CacheService cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)<br />
at Microsoft.ApplicationBlocks.Cache.CacheService..ctor()<br />
at Microsoft.ApplicationBlocks.Cache.CacheService..cctor()<br />
<br />
Inner Exception<br />
---------------<br />
Type : System.ArgumentNullException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
Message : The cache storage cannot be null.<br />
Parameter name: cacheStorage<br />
Source : Microsoft.ApplicationBlocks.Cache<br />
Help link : <br />
ParamName : cacheStorage<br />
Data : System.Collections.ListDictionaryInternal<br />
TargetSite : Void Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm.Init(Microsoft.ApplicationBlocks.Cache.CacheService, Microsoft.ApplicationBlocks.Cache.ICacheStorage, Microsoft.ApplicationBlocks.Cache.ICacheMetadata, System.Xml.XmlNode)<br />
Stack Trace : at Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging.Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm.Init(CacheService cachingService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata, XmlNode configSection)<br />
at Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(CacheService cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)<br />
Thanks in advance
Søren
|
|
|
|
|
Hi,
I created Tic-Tac-Toe game. Hope you might have aware of it. Now, two players can play the game in single system.
I would like to make the game as two players can play in their own systems. Ex,
Player1 plays in System1 and
Player2 plays in System2.
Suppose player1 clicks on first cell, the same move should reflect in system2, dynamically.
Next turn goes to Player2. whenever player2 click on one cell out of nine cells, that should reflect in System1.
Hope you understood. Please guide me how can I synchronise both systems.
Thanks and Regards,
Lalitha
|
|
|
|
|