15,897,122 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by orélle (Top 18 by date)
orélle
16-Sep-14 10:01am
View
In my case i have Visio installed on App-v and running on my local machine.
Any idea on how to get the running instance of Visio in my c# code running on my local machine.
On my local machine i see in the list of process visio.exe.
orélle
11-Sep-14 18:01pm
View
Nobody has any suggestion about this please!! :(
orélle
10-Sep-14 9:29am
View
I have tried your solution, i got a bug telling that parenthesis are absents. Thanks
orélle
9-Sep-14 9:33am
View
It's Access
orélle
9-Sep-14 8:39am
View
Thanks for your suggestion but the problem is that i'm not admin on my computer then i can not install whatever i want!! :(
orélle
9-Sep-14 7:51am
View
Deleted
I
orélle
9-Sep-14 7:23am
View
i have posted the query above. The query runs well if i execute directly on access so it's correct, the issue is while reading data in my application. Thanks
orélle
9-Sep-14 7:19am
View
This is the query: I use Access database
string queryC = "SELECT DISTINCT dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_LIEN, dbo_BOGEDOTXM_OCCUP_LIENS_SDH.TAUX_OCCUPATION, dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_EQPT_A, dbo_BOGEDOTXM_OCCUP_LIENS_SDH.PORT_A, dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_EQPT_B, dbo_BOGEDOTXM_OCCUP_LIENS_SDH.PORT_B, dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_SLOT_A, dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_SLOT_B FROM dbo_BOGEDOTXM_OCCUP_LIENS_SDH INNER JOIN ((dbo_EQUIPEMENT INNER JOIN dbo_OSMOSE_SITE_GEOGRAPHIQUE ON dbo_EQUIPEMENT.NUM_SITE_GEO = dbo_OSMOSE_SITE_GEOGRAPHIQUE.NUM_SITE_GEO) INNER JOIN dbo_OSMOSE_OPERATION ON dbo_OSMOSE_SITE_GEOGRAPHIQUE.NUM_SITE_GEO = dbo_OSMOSE_OPERATION.NUM_SITE_GEO) ON dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_EQPT_A = dbo_EQUIPEMENT.NOM_EQUIPEMENT WHERE (( (dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_LIEN) Like '%AT%' Or (dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_LIEN) Like '%BT%' Or (dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_LIEN) Like '%CT%' Or (dbo_BOGEDOTXM_OCCUP_LIENS_SDH.NOM_LIEN) Like '%DT%') AND ((dbo_OSMOSE_OPERATION.REGION_EXPLOITATION)=" + region + "));";
orélle
7-Sep-14 18:01pm
View
When the size of the data fits, it works. What is the location of the temporary folder?
I have a lot of free space on my disk anyway. If might be possible to increase the defautt value of the database result to more than 2 Go it will overcome the issue.
orélle
4-Sep-14 9:15am
View
I throw serializationException in my catch i discover that serialization was not completed successfully. An exception was thrown telling that ShapeClass attribute of my Equipment class "is not marked Serializable". This was the problem!!!
Then i solved the issue by modifying my business object Equipment class(Shapeclass as member it was useless).
It works properly now :)
Thanks for your problem solving skill, i retained that: "Prior to solve a problem try to understand from where its come from ortherwise you may be tried to solve the wrong problem".
orélle
4-Sep-14 8:31am
View
The objects that i serialize are not derived.
My differents classes: Equipment, Link and Shape are base classes.
Sometimes the deserialization works pretty well sometimes not. I am confused!!
orélle
4-Sep-14 5:39am
View
public void save(object toSave, string path)
{
//On utilise la classe BinaryFormatter dans le namespace System.Runtime.Serialization.Formatters.Binary.
BinaryFormatter formatter = new BinaryFormatter();
//La classe BinaryFormatter ne fonctionne qu'avec un flux, et non pas un TextWriter.
//Nous allons donc utiliser un FileStream. Remarquez que n'importe quel flux est
//compatible.
FileStream flux = null;
try
{
//On ouvre le flux en mode création / écrasement de fichier et on
//donne au flux le droit en écriture seulement.
flux = new FileStream(path, FileMode.Create, FileAccess.Write);
//Et hop ! On sérialise !
formatter.Serialize(flux, toSave);
//On s'assure que le tout soit écrit dans le fichier.
flux.Flush();
}
catch { }
finally
{
//Et on ferme le flux.
if (flux != null)
flux.Close();
}
}
/***************************************************************************************************************************/
public T load<t>(string path)
{
BinaryFormatter formatter = new BinaryFormatter();
FileStream flux = null;
try
{
//On ouvre le fichier en mode lecture seule. De plus, puisqu'on a sélectionné le mode Open,
//si le fichier n'existe pas, une exception sera levée.
flux = new FileStream(path, FileMode.Open);
return (T)formatter.Deserialize(flux);
}
catch (SerializationException e)
{
//On retourne la valeur par défaut du type T.
System.Windows.Forms.MessageBox.Show(" Failed! Raison: "+e.Message);
return default(T);
}
finally
{
if (flux != null)
flux.Close();
}
}
This is how i call them:
designer.save(designer.ListEquips, Path + @"\equips.dat");
designer.save(designer.ListLinks, Path + @"\links.dat");
designer.save(designer.ListConnector, Path + @"\connectors.dat");
List<equipment> equipments = designer.load<List<equipment>>(Path + @"\equips.dat");
List<Link> links = designer.load<List>(Path + @"\links.dat");
List<shape> connectors = designer.load<List<shape>>(Path + @"\connectors.dat");
orélle
11-Aug-14 11:06am
View
I have tried them.
Definitively they don't sweet my needs.
orélle
8-Aug-14 8:37am
View
There is no event code corresponding to shapeclick.
Thanks for your contribution.
orélle
22-Jul-14 11:17am
View
I expect that someone has writen the same method with better performance. It's not impossible...
If someone has a way to connect shape dynamically with better performance than those proposed in the Visio sdk, it will be really appreciated.
Thanks
orélle
27-Jun-14 9:30am
View
That looks interesting however using Visio is a requirement in my case. My users are used to and they prefer Visio.
Visio licence is not an issue, in fact i access visio trough a virtualized application. Programmatically, i don't know how to access visio on the virtualized application installed on my computer. That's why, i wanna program visio without having its installed then i will be able to open generated visio files trough the virtualized application
orélle
26-Jun-14 10:20am
View
Have you try to run the code using that reference without Visio Soft installed? If not try, an exception will raise telling roughfully that you need to install visio.
Thanks
orélle
26-Jun-14 9:18am
View
Thank for your suggestion, but this needs Microsoft Office Visio to be installed on the machine where the c# code is running!
I need to do the same but without Microsoft Visio installed on the server running my code.
Show More