... ( image or document file ) Image ==> *.bmp;*.gif;*.jpg;*.png;*.tif document files == >*.pdf *.doc,*.xls,*.ppt,*.docx,*.xlsx,*.pptx *.odt,*.ods,*.odp, *.sxw, *.sxc,*. sxi I think it is the problem I made also a test change your control Bitmap into Image control and gdi not run the code test ...