Accueil > > > IMPRESSION DE FICHIERS WORD/EXCEL
IMPRESSION DE FICHIERS WORD/EXCEL
Information sur la source
Description
Ma librairie pour les programmes de gestion : - Impression d'un fichier word simple ; paramêtres : chemin du fichier, booleen qui ouvre word ou non, nombre de copies. - Impression d'un fichier word avec signets ; paramêtres : les mêmes que précédants + 3 tableaux (Liste des signets du fichier word, liste des valeurs à mettre dans les signets, nombre de caractères pour les valeurs) - Remplissage d'un fichier excel à partir d'un datagridview ; paramêtres : un datagridview, chemin du fichier excel, chaine "titre de l'impression". Excel possédant moins de couleur qu'un datagridview, c'est la composante principale de la couleur qui est transférée. - Ouverture d'un fichier Word ; paramêtre : chemin du fichier - Ouverture d'un fichier Excel ; paramêtre : chemin du fichier - Transformation d'un nombre décimal en chaine de caractère, arrondi à 2 chiffres après la virgule (0 inclus), pratique pour l'impression de facture ; paramêtres : double
Source
- class MesOutils
- {
- public MesOutils()
- {
- }
-
- public void ImprimerFichierWord(object fileName, Boolean visible, int NbCopies)
- {
- try
- {
- Microsoft.Office.Interop.Word._Application aWord;
- Microsoft.Office.Interop.Word._Document aDoc;
- aWord = new Microsoft.Office.Interop.Word.Application();
- aWord.Visible = visible;
- object Missing = System.Reflection.Missing.Value;
- aDoc = aWord.Documents.Open(ref fileName, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing);//, ref Missing);
- object myTrue = true;
- object myFalse = false;
- object missingValue = Type.Missing;
- object range = Microsoft.Office.Interop.Word.WdPrintOutRange.wdPrintAllDocument;
- object items = Microsoft.Office.Interop.Word.WdPrintOutItem.wdPrintDocumentContent;
- object copies = NbCopies;
- object pages = "1";
- object pageType = Microsoft.Office.Interop.Word.WdPrintOutPages.wdPrintAllPages;
- aDoc.PrintOut(ref myFalse, ref myFalse, ref range,
- ref missingValue, ref missingValue, ref missingValue,
- ref items, ref copies, ref pages, ref pageType, ref myFalse,
- ref myTrue, ref missingValue, ref myFalse, ref missingValue,
- ref missingValue, ref missingValue, ref missingValue);
- aWord.Quit(ref myFalse, ref missingValue, ref missingValue);
- aWord = null;
- aDoc = null;
- }
- catch { MessageBox.Show("Erreur lors de l'ouverture du document"); }
- }
-
- public void ImprimerWord(string Document, Boolean WordVisible, int NbCopies, ArrayList Valeurs, ArrayList Signets, ArrayList NbCaracteres)
- {
- try
- {
- if (Signets.Count == Valeurs.Count) //S'il y a autant de signet que de valeurs à y écrire
- {
- Microsoft.Office.Interop.Word._Application aWord;
- Microsoft.Office.Interop.Word._Document aDoc;
- aWord = new Microsoft.Office.Interop.Word.Application();
- aWord.Visible = WordVisible; //Word n'apparait pas
- object Missing = System.Reflection.Missing.Value;
- object FileName = Document;
- aDoc = aWord.Documents.Open(ref FileName, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing);
- object myTrue = true;
- object myFalse = false;
- object missingValue = Type.Missing;
- object range = Microsoft.Office.Interop.Word.WdPrintOutRange.wdPrintAllDocument;
- object items = Microsoft.Office.Interop.Word.WdPrintOutItem.wdPrintDocumentContent;
- object copies = NbCopies;
- object pages = NbCopies.ToString();
- object pageType = Microsoft.Office.Interop.Word.WdPrintOutPages.wdPrintAllPages;
-
- Hashtable Bks = new Hashtable();
- for (int i = 1; i <= aDoc.Bookmarks.Count; i++)
- {
- object index = i;
- Microsoft.Office.Interop.Word.Bookmark bk = aDoc.Bookmarks.get_Item(ref index);
- Bks.Add(bk.Name, bk.Range);
- }
- for (int i = 0; i < Signets.Count; i++)
- {
- ((Microsoft.Office.Interop.Word.Range)Bks[Signets[i].ToString()]).Text = new String(Valeurs[i].ToString().ToCharArray()).PadRight(System.Convert.ToInt32(NbCaracteres[i]), '_');
- ((Microsoft.Office.Interop.Word.Range)Bks[Signets[i].ToString()]).Underline = Microsoft.Office.Interop.Word.WdUnderline.wdUnderlineSingle;
- }
- aDoc.PrintOut(ref myFalse, ref myFalse, ref range,
- ref missingValue, ref missingValue, ref missingValue,
- ref items, ref copies, ref pages, ref pageType, ref myFalse,
- ref myTrue, ref missingValue, ref myFalse, ref missingValue,
- ref missingValue, ref missingValue, ref missingValue);
- aWord = null;
- aDoc = null;
- }
- }
- catch { MessageBox.Show("Erreur lors de l'ouverture du document ..."); }
- }
-
- public void VoirFichierWord(object fileName)
- {
- try
- {
- Microsoft.Office.Interop.Word._Application aWord;
- Microsoft.Office.Interop.Word._Document aDoc;
- aWord = new Microsoft.Office.Interop.Word.Application();
- aWord.Visible = true;
- object Missing = System.Reflection.Missing.Value;
- aDoc = aWord.Documents.Open(ref fileName, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing);//, ref Missing);
- aWord = null;
- aDoc = null;
- }
- catch { MessageBox.Show("Erreur lors de l'ouverture du document"); }
- }
-
- public void VoirFichierExcel(string fileName)
- {
- try
- {
-
- object Missing = System.Reflection.Missing.Value;
- Microsoft.Office.Interop.Excel._Application xlApp;
- Microsoft.Office.Interop.Excel._Workbook xlClasseur;
- Microsoft.Office.Interop.Excel._Worksheet xlFeuill1;
- xlApp = new Microsoft.Office.Interop.Excel.Application();
- xlApp.Visible = true;
- xlClasseur = xlApp.Workbooks.Open(fileName,
- Missing, Missing, Missing, Missing,
- Missing, Missing, Missing, Missing,
- Missing, Missing, Missing, Missing,
- Missing, Missing);
- Microsoft.Office.Interop.Excel.Sheets xlFeuilles = xlClasseur.Sheets;
- xlFeuill1 = (Microsoft.Office.Interop.Excel._Worksheet)xlFeuilles["Feuil1"];
- }
- catch { MessageBox.Show("Erreur de l'ouverture du document"); }
- }
-
- public void Impression(string Titre, DataGridView Data)
- {
- try
- {
- //UseWaitCursor = true;
- object Missing = System.Reflection.Missing.Value;
- String fileName = new ConfigForm().getCheminDOCS() + "Vierge.xls";
- Microsoft.Office.Interop.Excel._Application xlApp;
- Microsoft.Office.Interop.Excel._Workbook xlClasseur;
- Microsoft.Office.Interop.Excel._Worksheet xlFeuill;
-
- xlApp = new Microsoft.Office.Interop.Excel.Application();
- xlApp.Visible = true;
- xlClasseur = xlApp.Workbooks.Open(fileName,
- Missing, Missing, Missing, Missing,
- Missing, Missing, Missing, Missing,
- Missing, Missing, Missing, Missing,
- Missing, Missing);
- Microsoft.Office.Interop.Excel.Sheets xlFeuilles = xlClasseur.Sheets;
- xlFeuill = (Microsoft.Office.Interop.Excel._Worksheet)xlFeuilles["A"];
- Microsoft.Office.Interop.Excel.Range r;
- r = xlFeuill.get_Range("A1", Missing);
- r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, Titre.ToString());
- r = xlFeuill.get_Range("A2", Missing);
- r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, "Imprimé le " + DateTime.Now.ToString().Substring(0, 10));
-
- int ligne = 6;
- int Cl = 0;
- string champ = "";
- //.Affichage des noms de colonne
- foreach (DataGridViewColumn clm in Data.Columns)
- {
- if (clm.Visible)
- {
- champ = LettreFromIndice(Cl) + "4";
- r = xlFeuill.get_Range(champ, Missing);
- r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, clm.HeaderText.ToString());
- Cl++;
- }
- }
- //.Remplissage des lignes
- foreach (DataGridViewRow dr in Data.Rows)
- {
- try
- {
- for (int j = 0; j < Data.ColumnCount; j++)
- {
- champ = LettreFromIndice(j) + ligne.ToString();
- r = xlFeuill.get_Range(champ, Missing);
- try
- {
- r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, dr.Cells[j].Value.ToString());
- //MessageBox.Show(dr.Cells[j].Style.BackColor.ToArgb().ToString());
- r.Interior.ColorIndex = this.getCouleurExcel(System.Convert.ToInt32(dr.Cells[j].Style.BackColor.R), System.Convert.ToInt32(dr.Cells[j].Style.BackColor.G), System.Convert.ToInt32(dr.Cells[j].Style.BackColor.B));
- //r.Font.FontStyle = Color.FromName(dr.Cells[j].Style.Font.Style.ToString());
- }
- catch
- {
- if (System.Convert.ToBoolean(dr.Cells[j]))
- r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, "Oui");
- else
- r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, "Non");
- }
- }
- }
- catch { }
- ligne++;
- }
- //xlFeuill.Columns.Width
- //UseWaitCursor = false;
- }
- catch { MessageBox.Show("Impossible d'ouvrir le document Excel type : Vierge.xls"); }
- }
- public int getCouleurExcel(int R, int G, int B)
- {
- if (R == 0 && G == 0 && B == 0)
- return 2;
- else if (R > G && R > B)
- return 3;
- else if (G > B)
- return 4;
- else return 5;
- }
- private string LettreFromIndice(int Indice)
- {
- if (Indice < 26)
- return ((char)(65 + Indice)).ToString();
- else return ""; //A faire
- }
-
- public string ArrondirToString(double D)
- {
- //Arrondi un double avec 2 chiffres après la virgule
- string Double = D.ToString();
- string A = "", B = "";
- try
- {
- //Si il y a une virgule, on stocke la partie entière dans A
- A = Double.Substring(0, Double.IndexOf(","));
- B = Double.Substring(Double.IndexOf(",") + 1, Double.Length - 1 - Double.IndexOf(","));
- }
- catch
- {
- //Sinon on retourne la partie entière suivie de ",00"
- return Double + ",00";
- }
- if (B.Length == 1) //Si 1 chiffre après la virgule
- return Double + "0";
- else if (B.Length == 2) //Si 2 chiffres après la virgule
- return Double;
- else if (System.Convert.ToInt32(B.Substring(2, 1)) < 5) //Si le 3eme chiffre après la virgule <5
- return A + "," + B.Substring(0, 2);
- else if (System.Convert.ToInt32(B.Substring(2, 1)) >= 5) //Si le 3eme chiffre après la virgule >=5
- {
- if (System.Convert.ToInt32(B.Substring(0, 2)) == 99) //Si A,99
- return (System.Convert.ToInt32(A) + 1).ToString() + ",00";
- else if (System.Convert.ToInt32(B.Substring(1, 1)) == 9) //Si A,X9
- return A + "," + (System.Convert.ToInt32(B.Substring(0, 1)) + 1).ToString() + "0";
- else return A + "," + B.Substring(0, 1) + (System.Convert.ToInt32(B.Substring(1, 1)) + 1).ToString();
- }
- return "0,00"; //Impossible
- }
- }
class MesOutils
{
public MesOutils()
{
}
public void ImprimerFichierWord(object fileName, Boolean visible, int NbCopies)
{
try
{
Microsoft.Office.Interop.Word._Application aWord;
Microsoft.Office.Interop.Word._Document aDoc;
aWord = new Microsoft.Office.Interop.Word.Application();
aWord.Visible = visible;
object Missing = System.Reflection.Missing.Value;
aDoc = aWord.Documents.Open(ref fileName, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing);//, ref Missing);
object myTrue = true;
object myFalse = false;
object missingValue = Type.Missing;
object range = Microsoft.Office.Interop.Word.WdPrintOutRange.wdPrintAllDocument;
object items = Microsoft.Office.Interop.Word.WdPrintOutItem.wdPrintDocumentContent;
object copies = NbCopies;
object pages = "1";
object pageType = Microsoft.Office.Interop.Word.WdPrintOutPages.wdPrintAllPages;
aDoc.PrintOut(ref myFalse, ref myFalse, ref range,
ref missingValue, ref missingValue, ref missingValue,
ref items, ref copies, ref pages, ref pageType, ref myFalse,
ref myTrue, ref missingValue, ref myFalse, ref missingValue,
ref missingValue, ref missingValue, ref missingValue);
aWord.Quit(ref myFalse, ref missingValue, ref missingValue);
aWord = null;
aDoc = null;
}
catch { MessageBox.Show("Erreur lors de l'ouverture du document"); }
}
public void ImprimerWord(string Document, Boolean WordVisible, int NbCopies, ArrayList Valeurs, ArrayList Signets, ArrayList NbCaracteres)
{
try
{
if (Signets.Count == Valeurs.Count) //S'il y a autant de signet que de valeurs à y écrire
{
Microsoft.Office.Interop.Word._Application aWord;
Microsoft.Office.Interop.Word._Document aDoc;
aWord = new Microsoft.Office.Interop.Word.Application();
aWord.Visible = WordVisible; //Word n'apparait pas
object Missing = System.Reflection.Missing.Value;
object FileName = Document;
aDoc = aWord.Documents.Open(ref FileName, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing);
object myTrue = true;
object myFalse = false;
object missingValue = Type.Missing;
object range = Microsoft.Office.Interop.Word.WdPrintOutRange.wdPrintAllDocument;
object items = Microsoft.Office.Interop.Word.WdPrintOutItem.wdPrintDocumentContent;
object copies = NbCopies;
object pages = NbCopies.ToString();
object pageType = Microsoft.Office.Interop.Word.WdPrintOutPages.wdPrintAllPages;
Hashtable Bks = new Hashtable();
for (int i = 1; i <= aDoc.Bookmarks.Count; i++)
{
object index = i;
Microsoft.Office.Interop.Word.Bookmark bk = aDoc.Bookmarks.get_Item(ref index);
Bks.Add(bk.Name, bk.Range);
}
for (int i = 0; i < Signets.Count; i++)
{
((Microsoft.Office.Interop.Word.Range)Bks[Signets[i].ToString()]).Text = new String(Valeurs[i].ToString().ToCharArray()).PadRight(System.Convert.ToInt32(NbCaracteres[i]), '_');
((Microsoft.Office.Interop.Word.Range)Bks[Signets[i].ToString()]).Underline = Microsoft.Office.Interop.Word.WdUnderline.wdUnderlineSingle;
}
aDoc.PrintOut(ref myFalse, ref myFalse, ref range,
ref missingValue, ref missingValue, ref missingValue,
ref items, ref copies, ref pages, ref pageType, ref myFalse,
ref myTrue, ref missingValue, ref myFalse, ref missingValue,
ref missingValue, ref missingValue, ref missingValue);
aWord = null;
aDoc = null;
}
}
catch { MessageBox.Show("Erreur lors de l'ouverture du document ..."); }
}
public void VoirFichierWord(object fileName)
{
try
{
Microsoft.Office.Interop.Word._Application aWord;
Microsoft.Office.Interop.Word._Document aDoc;
aWord = new Microsoft.Office.Interop.Word.Application();
aWord.Visible = true;
object Missing = System.Reflection.Missing.Value;
aDoc = aWord.Documents.Open(ref fileName, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing);//, ref Missing);
aWord = null;
aDoc = null;
}
catch { MessageBox.Show("Erreur lors de l'ouverture du document"); }
}
public void VoirFichierExcel(string fileName)
{
try
{
object Missing = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Excel._Application xlApp;
Microsoft.Office.Interop.Excel._Workbook xlClasseur;
Microsoft.Office.Interop.Excel._Worksheet xlFeuill1;
xlApp = new Microsoft.Office.Interop.Excel.Application();
xlApp.Visible = true;
xlClasseur = xlApp.Workbooks.Open(fileName,
Missing, Missing, Missing, Missing,
Missing, Missing, Missing, Missing,
Missing, Missing, Missing, Missing,
Missing, Missing);
Microsoft.Office.Interop.Excel.Sheets xlFeuilles = xlClasseur.Sheets;
xlFeuill1 = (Microsoft.Office.Interop.Excel._Worksheet)xlFeuilles["Feuil1"];
}
catch { MessageBox.Show("Erreur de l'ouverture du document"); }
}
public void Impression(string Titre, DataGridView Data)
{
try
{
//UseWaitCursor = true;
object Missing = System.Reflection.Missing.Value;
String fileName = new ConfigForm().getCheminDOCS() + "Vierge.xls";
Microsoft.Office.Interop.Excel._Application xlApp;
Microsoft.Office.Interop.Excel._Workbook xlClasseur;
Microsoft.Office.Interop.Excel._Worksheet xlFeuill;
xlApp = new Microsoft.Office.Interop.Excel.Application();
xlApp.Visible = true;
xlClasseur = xlApp.Workbooks.Open(fileName,
Missing, Missing, Missing, Missing,
Missing, Missing, Missing, Missing,
Missing, Missing, Missing, Missing,
Missing, Missing);
Microsoft.Office.Interop.Excel.Sheets xlFeuilles = xlClasseur.Sheets;
xlFeuill = (Microsoft.Office.Interop.Excel._Worksheet)xlFeuilles["A"];
Microsoft.Office.Interop.Excel.Range r;
r = xlFeuill.get_Range("A1", Missing);
r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, Titre.ToString());
r = xlFeuill.get_Range("A2", Missing);
r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, "Imprimé le " + DateTime.Now.ToString().Substring(0, 10));
int ligne = 6;
int Cl = 0;
string champ = "";
//.Affichage des noms de colonne
foreach (DataGridViewColumn clm in Data.Columns)
{
if (clm.Visible)
{
champ = LettreFromIndice(Cl) + "4";
r = xlFeuill.get_Range(champ, Missing);
r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, clm.HeaderText.ToString());
Cl++;
}
}
//.Remplissage des lignes
foreach (DataGridViewRow dr in Data.Rows)
{
try
{
for (int j = 0; j < Data.ColumnCount; j++)
{
champ = LettreFromIndice(j) + ligne.ToString();
r = xlFeuill.get_Range(champ, Missing);
try
{
r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, dr.Cells[j].Value.ToString());
//MessageBox.Show(dr.Cells[j].Style.BackColor.ToArgb().ToString());
r.Interior.ColorIndex = this.getCouleurExcel(System.Convert.ToInt32(dr.Cells[j].Style.BackColor.R), System.Convert.ToInt32(dr.Cells[j].Style.BackColor.G), System.Convert.ToInt32(dr.Cells[j].Style.BackColor.B));
//r.Font.FontStyle = Color.FromName(dr.Cells[j].Style.Font.Style.ToString());
}
catch
{
if (System.Convert.ToBoolean(dr.Cells[j]))
r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, "Oui");
else
r.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, "Non");
}
}
}
catch { }
ligne++;
}
//xlFeuill.Columns.Width
//UseWaitCursor = false;
}
catch { MessageBox.Show("Impossible d'ouvrir le document Excel type : Vierge.xls"); }
}
public int getCouleurExcel(int R, int G, int B)
{
if (R == 0 && G == 0 && B == 0)
return 2;
else if (R > G && R > B)
return 3;
else if (G > B)
return 4;
else return 5;
}
private string LettreFromIndice(int Indice)
{
if (Indice < 26)
return ((char)(65 + Indice)).ToString();
else return ""; //A faire
}
public string ArrondirToString(double D)
{
//Arrondi un double avec 2 chiffres après la virgule
string Double = D.ToString();
string A = "", B = "";
try
{
//Si il y a une virgule, on stocke la partie entière dans A
A = Double.Substring(0, Double.IndexOf(","));
B = Double.Substring(Double.IndexOf(",") + 1, Double.Length - 1 - Double.IndexOf(","));
}
catch
{
//Sinon on retourne la partie entière suivie de ",00"
return Double + ",00";
}
if (B.Length == 1) //Si 1 chiffre après la virgule
return Double + "0";
else if (B.Length == 2) //Si 2 chiffres après la virgule
return Double;
else if (System.Convert.ToInt32(B.Substring(2, 1)) < 5) //Si le 3eme chiffre après la virgule <5
return A + "," + B.Substring(0, 2);
else if (System.Convert.ToInt32(B.Substring(2, 1)) >= 5) //Si le 3eme chiffre après la virgule >=5
{
if (System.Convert.ToInt32(B.Substring(0, 2)) == 99) //Si A,99
return (System.Convert.ToInt32(A) + 1).ToString() + ",00";
else if (System.Convert.ToInt32(B.Substring(1, 1)) == 9) //Si A,X9
return A + "," + (System.Convert.ToInt32(B.Substring(0, 1)) + 1).ToString() + "0";
else return A + "," + B.Substring(0, 1) + (System.Convert.ToInt32(B.Substring(1, 1)) + 1).ToString();
}
return "0,00"; //Impossible
}
}
Conclusion
Améliorations à faire : Pour la fonction qui reproduit un datagridview dans un fichier Excel, il faudrait que les "font" soient reproduits aussi. De plus ce système est limité à 26 colonnes (Z).
Historique
- 27 octobre 2006 09:38:03 :
- Le tout a été mis dans une classe.
Plus de bidouillage pour : private string LettreFromIndice(int Indice)
Sources du même auteur
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
GROS problème de composants COM [ par Gaxx ]
Bonjour,J'ai commencé à développer une appli C# avec VS.NET sur un PC portable équipé de Office 2003 et VS.NET 2003. Je fait
Afficher doc WORD EXCEL ds mam page? [ par Gone007 ]
Salut a tous,Je suis sous C#.net,et j'aimerais bien afficher sur ma page HTML,un doc WORD ou EXCEL que j'ai en dur sur mon poste.Je ne sais pas si il
DataGridView + Word [ par lyoan ]
Bonjour à tous, Etant débutant en programmation, j'aurai aimé savoir comment puis-je importer un datagridview sur une page word. J'ai déja vu quelques
Impression d'un document word [ par tournevice ]
Salut à tous!Voici mon probleme. Je genère un document word par l'intermédiaire de Microsoft.Office.Interop.Word.Application et Microsoft.Office.Inter
Afficher un .doc dans une form [ par pitch6969 ]
Bonjour,existe t'il un contrôle qui permette d'afficher des documents word et excel dans une forme. Je l'ai déjà fait pour des pdf. Comment je peux fa
Impression d'un Datagridview en C# [ par ThoT49 ]
Bonsoir, j'ai cherché des sources ou des tutos qui aurait pu m'aider, cepandant je n'en n'es pas trouvé sur csharpfr.comDonc bah voici mon petit probl
copier/coller cellules d'un datagridview [ par ansizak ]
Bonjour,Je souhaiterais pouvoir effectuer un copier/coller du contenu de cellules selectionnées d'un tableau excel vers un datagridview (de même dimen
Process avec Word [ par pitch6969 ]
Bonjour,je suis en train de créer une visionneuse de document de type word, excel, pdf ....je charge les documents dans un WebBrowserControl et je vou
Automation Word et Excel [ par F2ATA ]
bonjour tout le monde,J'ai une question à soumettre à la communauté à propos de l'automation de Visual Studio 2005. j'ai développé une application en
Impression DOCX depuis un Service Windows [ par lbensch ]
Bonjour et bonne année à tous,Je dois développer un Service Windows imprimant des documents Word (docx) cependant je n'y arrives pas du tout.Je pense
|
Derniers Blogs
TECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICESTECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICES par ROMELARD Fabrice
Animé par: Gaetan Bouveret et Julien Chomarat Business Connectivity Services (BCS) est dans SharePoint 2010 la version 2 de Business Data Catalog (BDC dans SharePoint 2007). Il s'agit de la solution permettant de visualiser des données provenan...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE[DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE par orion
Comme de nombreux geek, je suis un grand amateur de série TV et je rate régulièrement des épisodes de mes séries préférés. Une solution s'offre à vous avec ce merveilleux site : Tv Gorge - www.tvgorge.com Moteur de recherche à l'appui, vous pouvez ...
Cliquez pour lire la suite de l'article par orion TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Vincent Bellet et Baptiste Giraudier La BI dans SharePoint 2010, Les nouveaux services d'application dans SP2010 et SQL Server Reporting services 2008 R2. La BI dans SharePoint est généralisée pour tous afin de permettre à tous les coll...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2010 : PLAN DE MIGRATION VERS SHAREPOINT 2010TECHDAYS PARIS 2010 : PLAN DE MIGRATION VERS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Arnault Nouvel et Antoine Dongois Le processus à prendre : Apprendre (découvrir la plateforme) Préparer (documenter l'historique et choisir la méthode de MAJ) Test (Test de MAJ) Implémenter (Effectuer la MAJ) Valid...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|