Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
Could not find a part of the path 'C:\images\Gridview.jpg'.
Line 58:         PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
Line 59:         pdfDoc.Open()
Line 60:         htmlparser.Parse(sr)
Line 61:         pdfDoc.Close()
Line 62:         Response.Write(pdfDoc)


The GridView that I am exporting to pdf has images and css what is the cause for that path.
Posted
v2
Comments
ZurdoDev 2-Aug-13 10:50am    
You either failed to provide a path so it is trying to do it relatively or you need to provide a path.
[no name] 2-Aug-13 11:30am    
the grid view dont have any error in the browser the error occur when i want to export it to pdf
ZurdoDev 2-Aug-13 11:36am    
I know. You need to specify the path, right?
[no name] 2-Aug-13 11:38am    
the path of image in the grid view is like this "uploads/pics/<%# Eval("imgUrl") %>" it is desplaing the image in the grid view but when i export the grid view it make that error
ZurdoDev 2-Aug-13 11:51am    
I am not sure how to explain it any better. You have to fix the path.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900