Home > database >  Do not install office, to have pb DLL or com components available to manipulate the word
Do not install office, to have pb DLL or com components available to manipulate the word

Time:10-10

Play a PB for so many years, for the first time meet so serious!
Originally worked very normal in a normal environment a modification of the WORD font size VBA code, regardless of the XP, Windows 7, doing, 32 bit or 64 bit, PC or laptop, WORD2007 -- WORD2013 is no problem, and can be installed on the computer security protection of the government, whether WIN a few, either 32 or 64, regardless of the WORD several, on all machines that don't work to change the font size of VBA code!!!!!! (the rest of the VBA code was very strange can still work normally)

Reasoning, only from dependence on the native WORD can really solve the problem. Just now to use OFFICE controls basically only support. The.net or JAVA, seems can't find the PB of the available components,, I don't know the jar have which friend has the experience, to the next show just a little,,

CodePudding user response:

PB can directly use the component is not found, the.net and Java is more, suggest your own packaging, such as encapsulation in c # a DLL, and then use PB call
1, NPOI
NPOI refers to build in POI (3) above x version of a program that can NPOI without installation of Office to read and write operations of Word or Excel documents,
NPOI is an open source Java to read and write Excel, WORD documents, such as Microsoft OLE2 component project,

This can also
2, OfficeWriter
But what is your check security software lead to this problem, your program to security software uninstall a try, to find the reason, countermeasures to

It is also possible is a question of authority, try the administrator to run your program

CodePudding user response:

Back to the moderator: not other development tools. And also don't want to learn, so can only find support PB components,
Found a encapsulates colleagues help me to understand the c # aspose. Word, appears to be popular the component now, but he tried to feel the difficulty is too big, so we have to give up,

Government authority machine does not let me try, casually, are not connected to a network, let alone discharge, security software, but permissions must be administrator, at least the administrator group, because what are completely normal installation,
Currently appson acquired pb, make a pb2017, but China doesn't even have the agent, actually, want to buy a genuine know who to find,, MY GOD! I really don't know what on earth are they thinking, and it's a waste of the PB so good dongdong!

CodePudding user response:

Put your this period of vba code directly in their word to perform it a try, see can be executed directly,
  • Related