Print2PDF function

Using the [Print2PDF function. I run a chart on a form and when I run the function it creates a pdf form copy except for the chart… even though the chart is on the form. The first pic is with the chart. Second pic is after I run the Print2PDF function, it copies the form to pdf but not the char. Attached are the forms with chart and after running the function. Any ideas?

the Code for Print2PDF function:

Function Button1112_onclick()
chartform.style.display = "inline"
  pdf.addHTML(document.body, handlePDFdone)
 
  Sub handlePDFdone()
  pdf.save()
  chartform.style.display = "inline"
End Sub
  End Function

Found a way to use the PrintPDF function to print separate information on each page. It downloads a two pages with separate information based in the value of each TextArea:

function Header1_onclick() (in Form1)
  Header1.hidden = True
   pdfForm.style.display = "inline"
  FormattedPage.style.display = "inline"
  lblPage.text = "<br>" + "Page 1"

(In the FormattedPage, Added a hidden TextArea1 and its value equal to whatever variables were in Texareapdf,value or whatever value you want to assign to TextArea1, and tranferred value to HTMLview1)

  TextArea1.value = TextAreapdf.value 
HTMLview1.innerHTML = TextArea11.value
 pdf.addHTML(document.body, page2)

End function

Sub page2()

(In the FormattedPage, Added a hidden TextArea2 and its value equal to whatever variables were in Texareapdf2,value, or whatever value you want to assign to TextArea1, and tranferred value to HTMLview1)

   TextArea2.value = TextAreapdf2.value 
   HTMLview113.innerHTML =  TextArea2.value
  pdf.addPage()
  lblPage.text = "<br>" + "Page 2"
  pdf.addHTML(document.body, handlePDFdone)
End Sub

Sub handlePDFdone()
  pdf.save()
  'FormattedPage.style.display = "inline" (No Need For This)
 ' pdfForm.style.display = "inline" (No Need For This)
End Sub