Skip to content

Fab2bprog/Examples-of-printing-with-Csharp

Repository files navigation

Impression avec csharp

Description in English:

The goal of this example in C # is to make a little synthesis of the functions / possibilities of printing online code of this language.

There are 4 printing examples (see photos) with progressive difficulty.

  • The first example of printing with a line of text and a horizontal dash.
  • The second where you can print an image of your choice.
  • Another one that includes an example of printing a pie chart (piechart)
  • Then the last one, using the technique of cell printing. It is used in particular to print tables. It works in an arrangement of cells (containing text or numbers) like those found in spreadsheets.

You can choose to print with printer selection, on the default printer, to preview its printing.

If you usually encounter problems with your prints, I have added a pdf document on the cell printing technique. This is an interesting technique when you generate impressions from lines of code and do not have a graphical report editor to make your life easier. It allows with relative simplicity to generate complex reports.

Developed with Visual Studio 2019.


Description en Francais :

Le but de cet exemple en C# est de faire en quelque sorte une petite synthèse des fonctions / possibilités d'impression en ligne de code de ce langage.

Programme à vocation pedagogique pouvant servir de base au developpement de votre futur application.

Il y a 4 exemples d' impression ( voir photos ) avec une difficulté progressive.

  • Le premier exemple d' impression avec une ligne de texte et un tiret horizontal.
  • Le second où vous pourrez imprimer une image de votre choix.
  • Un autre qui inclue un exemple d'impression de graphique en camembert ( piechart )
  • Puis enfin le dernier, reprenant la technique de l'impression en cellule. Elle sert notamment pour imprimer des tableaux. Son fonctionnement réside dans un agencement de cellules (contenant du texte ou des nombres) comme celles que l'on trouve dans les tableurs.

On peut choisir d'imprimer avec sélection d'imprimante, sur l'imprimante par défaut, de prévisualiser son impression.

Si vous rencontrez des soucis habituellement avec vos impressions, j'ai rajouté un document pdf sur la technique d'impression en cellule. C'est une technique intéressante lorsque on génère des impressions à partir de lignes de code et que l'on ne possède pas d’éditeur d’état graphique pour nous simplifier la vie. Elle permet avec une simplicité relative de générer des états complexes.

Développé avec Visual Studio 2019.


About

The goal of this example is to make a synthesis of the printing possibilities of C#. Good for learning how to print.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages