Imprimer datagridview en c++

Fermé
wimali - 6 mars 2013 à 12:13
rionmar Messages postés 1 Date d'inscription mardi 9 avril 2013 Statut Membre Dernière intervention 2 mai 2013 - 2 mai 2013 à 17:33
Bonjour,

j ai essayer d'imprimer une datagridview qui se trouve dans un form mais j ai une erreur dans le code qui s'affiche apres la reussite du debbug
voici l erreur:Object reference not set to an instance of an object.
et voici la partie du code ou il existe l erreur:
//Draw Columns Contents        
						for each (DataGridViewCell^ Cel in GridRow->Cells)
						{
            
							
	if (Cel->Value != nullptr)
	{

		e->Graphics->DrawString(Cel->Value->ToString(),Cel->InheritedStyle->Font,
gcnew SolidBrush(Cel->InheritedStyle->ForeColor),  RectangleF((float)arrColumnLefts[iCount],(float)iTopMargin,
(float)arrColumnWidths[iCount], (float)iCellHeight));
									 
A voir également:

2 réponses

j attend vos réponses
aider moi je vous en pris
0
rionmar Messages postés 1 Date d'inscription mardi 9 avril 2013 Statut Membre Dernière intervention 2 mai 2013
2 mai 2013 à 17:33
Bonjour,

Je dois également imprimer un DataGridView en pdf et aimerais savoir si tu
y es finalement arrivé finalement??

Merci!!
0