none
Images are not loading in PDF file in Windows Server 2008 R2 RRS feed

  • Question

  • Hi All,

    In web application which is hosted in Test Server, we are generating PDF file with the specific web page content. When we generagte the PDF file, Images in the webpages are not displayed(its showing red cross marks) in the PDF. If we host the same code in Dev server its working fine.

    I've checked all the installed components everything is same in both Dev and Test. we are using "ephtmltopdf.dll" to generate pdf file,

    Environement Details for the both Dev & Test Servers are:

    Windows Server 2008 R2, IIS server is 7.0

    Please suggest what could be the reason for this ? I found Microsoft.ShDocvw.dll is  installed in GAC but in Test Server its not. Is this  the reason ? Also let me know How can I install this DLL into GAC of the Test Server.

    Thursday, June 28, 2012 11:13 AM

Answers

  • Hi Ramakrish,

    Welcome to the MSDN Forum.

    Please check the "Copy local " property of both the references.

    It shows here:

    If the copy local property is false, you can try to change it to True, and then there should be not necessary to register the dll to GAC.

    Anyway, if you insist to your way, please take a look at this tool: http://msdn.microsoft.com/en-us/library/ex0ss12c(v=vs.100).aspx 

    This tool can install an assembly to GAC, but as far as I know the "Microsoft.ShDocvw.dll" is a COM component, so you need to register it by regsvr32.

    And then, use this tool to get CLR assembly: http://msdn.microsoft.com/en-us/library/tt0cf3sx(v=vs.100).aspx 

    At last, the tools mentioned above Gacutil will help you to install it in GAC.

    I hope this will be helpful.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, June 29, 2012 9:48 AM
    Moderator

All replies

  • I think your install package should do that.

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Friday, June 29, 2012 5:18 AM
  • Hi Ramakrish,

    Welcome to the MSDN Forum.

    Please check the "Copy local " property of both the references.

    It shows here:

    If the copy local property is false, you can try to change it to True, and then there should be not necessary to register the dll to GAC.

    Anyway, if you insist to your way, please take a look at this tool: http://msdn.microsoft.com/en-us/library/ex0ss12c(v=vs.100).aspx 

    This tool can install an assembly to GAC, but as far as I know the "Microsoft.ShDocvw.dll" is a COM component, so you need to register it by regsvr32.

    And then, use this tool to get CLR assembly: http://msdn.microsoft.com/en-us/library/tt0cf3sx(v=vs.100).aspx 

    At last, the tools mentioned above Gacutil will help you to install it in GAC.

    I hope this will be helpful.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, June 29, 2012 9:48 AM
    Moderator