Display pdf in iframe using ssl/https based

2019-03-05 02:55发布

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();

1条回答
男人必须洒脱
2楼-- · 2019-03-05 03:22

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..

查看更多
登录 后发表回答