question

adilahmed avatar image
0 Votes"
adilahmed asked sadomovalex commented

Convert html to PDF Unable to load DLL 'wkhtmltox.dll': The specified module could not be found.

Hi,
I moved my Custom Solutions to new SharePoint 2016 Server after upgrade to SharePoint 2013 to 2016, when user browser custom page & click one option Export Data to Pdf , they get below error.

Unable to load DLL 'wkhtmltox.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at PFE.Internet.ControlTemplates.Request.ExportTopdf_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

In Old Server SP 2013 previously deployed TuesPechkin.Wkhtmltox thirdparty Tools to export data to PDF.
Here In new Server how can i & where to deploy these DLLS.

office-sharepoint-server-administrationoffice-sharepoint-server-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ElsieLu-MSFT avatar image
0 Votes"
ElsieLu-MSFT answered ElsieLu-MSFT commented

Hi @adilahmed ,

As this post mentioned, you could rebuild the solution.

1- Open the custom SharePoint Project in your VS.

2- remove old references (.SharePoint.dll) (.sharepoint..dll) and add new references (.SharePoint.dll) (.sharepoint..dll).

3- rebuild the solution .

4- add , deploy, and install the sp solution on the new env.

Another similar post for your reference:
Migrating Custom Solutions from SharePoint 2013 to 2019

And when it comes to third-party products, I would suggest you seek help from third-party suppliers.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @adilahmed , is there any update? I am willing to hear from you.

0 Votes 0 ·
sadomovalex avatar image
0 Votes"
sadomovalex answered sadomovalex commented

if there is one dll you may just install it to GAC on SP2019 WFE server:

gacutil -i wkhtmltox.dll

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi In which path i should run this command

0 Votes 0 ·

it depends on your Windows version. E.g. in Windows 10 you may find gacutil in the following SDK folder: "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64"

0 Votes 0 ·