Thanks Paulo for your reply...
I found fixed the bug.
It was my stupid mistake
I was setting the file size to browser, even before creating the file.
But the strange thing is, it worked locally without any problem.
I was putting this line before that file was even created:
MemoryStream msPDF = new MemoryStream();
Response.AddHeader("content-length", msPDF.GetBuffer().Length.ToString());
Thanks a lot guys
Paulo Soares wrote:
>
> You may have a server that only allows medium trust assemblies.
>
> Paulo
>
> ----- Original Message -----
> From: "skcsknathan001" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, April 07, 2008 6:16 PM
> Subject: Re: [iText-questions] Adobe reader dll's
>
>
>>
>> I have a very similar problem.
>>
>> I'm using itextsharp 4.0.8
>>
>> I have used it to generate PDF file locally on my machine and it works.
>> I uploaded to the web server and it doesn't work.
>>
>> I generate PDF file in MemoryStream and do OutputStream to browser, for
>> the
>> user to save the file.
>>
>> Locally it askes the file download dialog box and I was able to save and
>> open it correctly.
>>
>> from the web server, the save file dialog box appears but there is no
>> bytes
>> saved. [0 bytes].
>>
>> Hence when I try to open it throws the error message as the file "... is
>> either not a supported fily type or because the file has been damaged"
>>
>> I upgraded both local and web server with Adobe Reader 8.1.2 and still
>> didn't seem to solve the problem
>>
>> 8.1.1 also had the problem.
>>
>> I read in this post that iTextSharp doesn't use any Adobe Reader dlls,
>> but
>> then it must be some settings in Web Server, or permissions or something.
>> Google didn't help me find it either. Is there any particular settings/
>> permissions needed by iTextSharp to function on a web Server?
>>
>> thanks a bunch
>> knathan
>>
>>
>>
>> Rick Roen wrote:
>>>
>>> I'm following up on a problem I have with clients with older versions of
>>> Adobe Reader (< 7) who cannot read PDF created by iTextSharp after I
>>> updated
>>> to Adobe Reader 8.1.2.
>>>
>>>
>>>
>>> Does iTextSharp use a dll or anything from the version of Adobe Reader
>>> that
>>> is located on the computer that runs the program (or perhaps from where
>>> it
>>> was compiled)? If so that might explain why this would be happening
>>> after
>>> I
>>> upgraded. There is nothing else that I can think of that has changed in
>>> my
>>> program.
>>>
>>>
>>>
>>> Regards,
>>>
>>>
>>>
>>> Rick
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
>
>
--
View this message in context:
http://www.nabble.com/Adobe-reader-dll%27s-tp16004768p16558015.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar