Click here to Skip to main content
15,905,915 members
Home / Discussions / C#
   

C#

 
Questiondata formating Pin
muharrem10-Oct-08 1:40
muharrem10-Oct-08 1:40 
AnswerRe: data formating Pin
DaveyM6910-Oct-08 1:49
professionalDaveyM6910-Oct-08 1:49 
QuestionDataSource Pin
reza assar10-Oct-08 1:34
reza assar10-Oct-08 1:34 
AnswerRe: DataSource Pin
SeMartens10-Oct-08 1:44
SeMartens10-Oct-08 1:44 
AnswerRe: DataSource Pin
nelsonpaixao10-Oct-08 12:54
nelsonpaixao10-Oct-08 12:54 
Questioncreat a shortcut Pin
reza assar10-Oct-08 1:31
reza assar10-Oct-08 1:31 
AnswerRe: creat a shortcut Pin
DaveyM6910-Oct-08 1:33
professionalDaveyM6910-Oct-08 1:33 
QuestionOut of memory errors on drawing images in Pdf file Pin
Ninii10-Oct-08 1:23
Ninii10-Oct-08 1:23 
Im generating a Pdf of a table that contains about 200 000 records, each containig a differen image file too. so my pdf has to draw 200 000 little images, i get out of memory erro or GDI+ error after a while. The code does work for less records (checked on 100 - 1000). the code also works if I delete the image = new PdfBitmap("path for a different image for every cell of the table"); line and draw the same image in every row.
Please any suggestions would be appreciated.

public PdfImage image = new PdfBitmap("l.jpg");

void table_EndCellLayout(object sender, EndCellLayoutEventArgs args)
{

int cellIndex = args.CellIndex;

if ((cellIndex == 5) )
{
PdfGraphics g = args.Graphics;

try
{
image = new PdfBitmap("path for a different image for every cell of the table");
RectangleF bounds = args.Bounds;
PointF point1 = bounds.Location;

//obliczanie srodkowego punku komorki
g.DrawImage(image,point1.X, point1.Y, 30, 30);

}
catch
{

}


}
}
AnswerRe: Out of memory errors on drawing images in Pdf file Pin
leppie10-Oct-08 2:28
leppie10-Oct-08 2:28 
GeneralRe: Out of memory errors on drawing images in Pdf file Pin
Ninii10-Oct-08 21:48
Ninii10-Oct-08 21:48 
Questionhow to show a range of date using calender control in c# .net Pin
aurosikhadas10-Oct-08 1:01
aurosikhadas10-Oct-08 1:01 
AnswerRe: how to show a range of date using calender control in c# .net Pin
leppie10-Oct-08 2:30
leppie10-Oct-08 2:30 
QuestionInsert Images along with images name to PDF C# Pin
ramyanaidu10-Oct-08 0:43
ramyanaidu10-Oct-08 0:43 
AnswerRe: Insert Images along with images name to PDF C# Pin
leppie10-Oct-08 2:30
leppie10-Oct-08 2:30 
GeneralDesign a Class Pin
Rohit16db10-Oct-08 0:43
Rohit16db10-Oct-08 0:43 
GeneralRe: Design a Class Pin
DaveyM6910-Oct-08 1:29
professionalDaveyM6910-Oct-08 1:29 
GeneralRe: Design a Class Pin
Rohit16db10-Oct-08 1:45
Rohit16db10-Oct-08 1:45 
GeneralRe: Design a Class [modified] Pin
#realJSOP10-Oct-08 1:37
professional#realJSOP10-Oct-08 1:37 
QuestionHow to save icons Pin
Ankit Rajpoot10-Oct-08 0:15
Ankit Rajpoot10-Oct-08 0:15 
AnswerRe: How to save icons Pin
JoeSharp10-Oct-08 1:52
JoeSharp10-Oct-08 1:52 
QuestionValue type vs reference type Pin
Mogaambo10-Oct-08 0:05
Mogaambo10-Oct-08 0:05 
AnswerRe: Value type vs reference type Pin
rah_sin10-Oct-08 0:17
professionalrah_sin10-Oct-08 0:17 
AnswerRe: Value type vs reference type Pin
DaveyM6910-Oct-08 0:17
professionalDaveyM6910-Oct-08 0:17 
GeneralRe: Value type vs reference type Pin
Mogaambo10-Oct-08 0:26
Mogaambo10-Oct-08 0:26 
GeneralRe: Value type vs reference type Pin
DaveyM6910-Oct-08 1:21
professionalDaveyM6910-Oct-08 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.