Thursday 18 January 2018

Windows 10 StopCode - Rebooting on Startup

Windows 10 StopCode - Rebooting on Startup and cannot restore, re-install, etc. To fix this issue:
  • Boot from a bootable media
  • On start-up, go to Troubleshoot, Advance options, and open the Command Prompt
  • Change the drive to Windows drive
  • Issue the following commands:
    • cd windows\system32\config
    • md backup
    • copy *.* backup
    • cd regback
    • copy *.* ..

Than exit and restart the system... more


Wednesday 17 January 2018

Create PDF from HTML using NReco.PdfGenerator with page number

var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter();
htmlToPdf.PageFooterHtml = @"<div style='text-align:right; font-size:14px;'>Page <span class=""page""></span> of &nbsp;<span class=""topage""></span><div>";
htmlToPdf.Margins.Top = 15;
htmlToPdf.Margins.Bottom = 15;
htmlToPdf.Margins.Left = 8;
htmlToPdf.Margins.Right = 8;

var pdfBytes = htmlToPdf.GeneratePdf(HtmlFile);
File.WriteAllBytes(newpath, pdfBytes);


Upgrade Windows 11 Home to Windows 11 Pro

Disable internet connection (Wi-Fi, Internet, etc.) Change the product key using the following Generic product key:                     VK7J...