Chris
Chris

Reputation: 75

Display pdf in iframe using ssl/https based

I want to Showing PDF inside iframe for user preview before download the file or print,

i use byte array convert my report file to pdf then showing it.

everything was perfect until i need something in ssl/https.

because of that i must change my application to ssl/https can some one show me how can i show pdf in this condition.

thanks for listening and reading my prob.

here my code

        reportDocument.Load(reportPath);
        reportDocument.SetDataSource(dataSet);
        _contentBytes = StreamToBytes(reportDocument.ExportToStream(ExportFormatType.PortableDocFormat));
       .....
       //setting header
       .....

       //then flush
       stream.Flush();

Upvotes: 0

Views: 988

Answers (1)

Chris
Chris

Reputation: 75

i found the solution in PDF conversion suddenly fails if reading stylesheet from SSL the problem is the pdf reader inside my chrome browser. so i updating my chrome reader in store search pdf viewer.. just it..

Upvotes: 1

Related Questions