Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > I am using ActivePDF tool kit to generate PDF files in our ASP.NET 2.0 web app. Need help!

Reply
Thread Tools

I am using ActivePDF tool kit to generate PDF files in our ASP.NET 2.0 web app. Need help!

 
 
Learner
Guest
Posts: n/a
 
      04-22-2006
Hello,
We are using ActivePDF toolkit to generate reports in our web
application. We are using ASP.NET 2.0 and SQL Server 2005.

We are able to open the pdf files on our local development box with out
any problem. But having problems on the production server.

When we moved our application to the production serrver we made sure
that we copied the
production version of the APToolkitNET.dll to our project BIN directory
but still having problems.

When we try opening the PDF file on the server this is the error we are
getting:

"Adobe Reader could not open 'XXXXX[2].pdf' because it is either no a
supported file type or because the file has been corrupted (for
example, it was sent as an email attachment and wasn't correctly
decode)"

But the same code works perfectly fine on my development box but not
sure why is this causing on the server.

The version of Adobe Reader on my development box is 6.0
The version of Adobe Reader on the server is 7.0 (not sure if this
makes any difference but just want to mention it here)

Can some one help me with this if any one of you had similar problem in
the past?

Thanks in advance
-L

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJhZCBSb2JlcnRz?=
Guest
Posts: n/a
 
      04-22-2006
I have run into this before. It has nothing to do with the ActivePDF though.

It may be that content-expiration on the server is set to "immediately". In
this case, if a round trip is required by the client to the server then the
client may not be able to access it because it has already expired. Try
setting content expiration to 1 minute on the web server.

Also, if using SSL, the "do not save encrypted files to disk" setting in IE
may prevent the PDF from being saved to Temporary Internet Files and may
cause a similar problem.

--
Brad

"Software is like melted pudding..."


"Learner" wrote:

> Hello,
> We are using ActivePDF toolkit to generate reports in our web
> application. We are using ASP.NET 2.0 and SQL Server 2005.
>
> We are able to open the pdf files on our local development box with out
> any problem. But having problems on the production server.
>
> When we moved our application to the production serrver we made sure
> that we copied the
> production version of the APToolkitNET.dll to our project BIN directory
> but still having problems.
>
> When we try opening the PDF file on the server this is the error we are
> getting:
>
> "Adobe Reader could not open 'XXXXX[2].pdf' because it is either no a
> supported file type or because the file has been corrupted (for
> example, it was sent as an email attachment and wasn't correctly
> decode)"
>
> But the same code works perfectly fine on my development box but not
> sure why is this causing on the server.
>
> The version of Adobe Reader on my development box is 6.0
> The version of Adobe Reader on the server is 7.0 (not sure if this
> makes any difference but just want to mention it here)
>
> Can some one help me with this if any one of you had similar problem in
> the past?
>
> Thanks in advance
> -L
>
>

 
Reply With Quote
 
 
 
 
ossweb ossweb is offline
Junior Member
Join Date: Jun 2008
Posts: 1
 
      06-15-2008
You can try the winnovative html to pdf converter from http://www.winnovative-software.com. You can perform HTML to PDF conversion with 2 lines of code:

PdfConverter pdfConverter = new PdfConverter();
byte[] downloadBytes = pdfConverter.GetPdfFromUrlBytes(MyURL);
 
Reply With Quote
 
venkatmath venkatmath is offline
Junior Member
Join Date: Jul 2008
Posts: 1
 
      07-12-2008
Hi,

Any Solution, I tried by change content expiration but it still same issue persists. Please guide me..


Thanks in Advance..
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
activePDF problems. =?Utf-8?B?YWxhbg==?= ASP .Net 0 08-24-2005 07:35 AM
need recommendations on what brand, specific computer tool kit to buy (physical tool kits, not software kits/suites) Trevor Smithson Computer Information 1 05-27-2005 01:15 AM
need recommendations on what brand, specific computer tool kit to buy (physical tool kits, not software kits/suites) Trevor Smithson Computer Support 5 05-25-2005 07:48 PM
Alternatives to ActivePDF? darrel ASP .Net 2 03-29-2005 05:49 PM
web host provider offering ActivePDF? Paul ASP .Net 3 02-03-2004 07:13 PM



Advertisments