Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF printing on LAN/WAN
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01395213
Message ID:
01395790
Views:
63
>Ninety per cent of the output is from Microsoft Word--a mixture of 2000, 2003 and 2007. Whatever solution I settle upon, it should be designed to work well with Word. I don't want to depend upon any tricks or sleight of hand. That can be difficult to maintain over time and when faced with Microsoft updates!


Well, we are slaves of Microsoft, nothing we can do with it unless we do not use MS products. But contrary to Excel, with MS Word there are no tricks, and the solution is simple:
WITH oWord
  .documents.open("c:\foxwork\daily.doc")
* .visible=.t.
    lcActivePrinter=.ActivePrinter	
    .ActivePrinter = "Win2PDF"		&& it sets the WIndows Default Printer!!?
   lcout="c:\daily.pdf"
    erase (lcout)
    .PrintOut(.f.,.f.,"",lcout,,,,,,,.t.)
    .ActivePrinter = lcActivePrinter		&&set default printer back
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform