0

Is there any way to get a pdf from an access database and display it directly into an axAcroPdf control without having to save the document on the disk?

If this isn't possible with Access, can you recommend some other db to use? My "mentor" suggested I'd use firebird but until this problem occurred, access did everything I needed it to do.

Thx in advance

Tony Toews
  • 7,850
  • 1
  • 22
  • 27
Bogdan
  • 662
  • 1
  • 12
  • 23

2 Answers2

1

It is not a limitation of the database but rather axAcroPdf which is just a wrapper for Acrobat Reader which does not support loading pdfs from memory.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • I see, I also thought this was the problem, but my "mentor" aka my teacher kept telling me it's possible. Oh well.. Anyway, do you know if there are any pdf viewers for c# that could display the file without having to load it from disk? – Bogdan Jan 13 '10 at 13:38
  • I've heard that XPdfViewer (http://www.glyphandcog.com/XpdfViewerCtrl.html) supports this functionality (http://www.glyphandcog.com/support/q0008.html) but I've never used it myself. – Darin Dimitrov Jan 13 '10 at 13:47
  • Thank you for your suggestion, but it's a bit too pricey for me, I guess I will stick with what I have for now. – Bogdan Jan 13 '10 at 13:49
0

Would it work to just save the PDF to a temp area and then delete it when the form closes? Not an ideal solution but it would get round some of the problems

Kevin Ross
  • 7,185
  • 2
  • 21
  • 27