Report to PDF (Lebans) with Web Browser Control

  • Thread starter Mike Hutchinson-Brown
  • Start date
M

Mike Hutchinson-Brown

I am developing a CRM application. Currently I need to access an up to date
site where the relevant page to the product being worked on, needs to be
saved as PDF to a specific folder, with a specific name.

Using the report to PDF which Stephen Lebans has made available at his site
is no problem at all. The problem is:

The user first uses a form with a web browser control, which locates the
correct site to choose a fund page. This is fine, it displays the fund page
perfectly. Now I was attempting to allow them to print this page to a PDF
using a report with the web browser control pointing to the current page of
the one on the form. (The report picks up the address from its openargs when
opened using a button on the form.) It just prints a blank page. I know the
report is showing the correct page. I do think though that the report is
opened and converted before the page can load. Is there a way to delay
writing the report to PDF until the page has fully loaded?

I will be looking at the code to see if I can figure this out for myself
however, any help or alternative methods will be greatly appreciated.

Thanks

Mike
 
S

Stephen Lebans

The current contents of a MS Web Browser control cannot be output on a form
or report. The WB control exposes a method to render its contents directly
to a printer but this output cannot be integrated with the output of an
Access Form or Report.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top