Pierakstīties, izmantojot Microsoft
Pierakstīties vai izveidot kontu
Sveicināti!
Atlasīt citu kontu.
Jums ir vairāki konti
Izvēlieties kontu, ar kuru vēlaties pierakstīties.
angļu
Diemžēl šis raksts jūsu valodā nav pieejams.

Symptoms

In Microsoft Word 2010, you cannot change the Print command on the File menu by using a macro. When you create and then run a macro that is named "FilePrint," the Print dialog box appears unexpectedly.

Workaround

To work around this issue, use a Microsoft Office 2010 Custom UI part to customize Backstage View. For example, use the following code to create a new button that is labeled "PrintII" that triggers the FilePrint command. This Custom UI part also hides the Print tab in Backstage.

Note You must have an existing Visual Basic for Applications (VBA) method that is named "FilePrint."

            

<customUI xmlns="

http://schemas.microsoft.com/office/2009/07/customui">
  <backstage>
    <button id="printBtn" label="PrintII" imageMso="PrintAreaMenu" onAction="FilePrint" insertAfterMso="FileSaveAs" />
    <tab idMso="TabPrint" visible="false" />
  </backstage>
</customUI>

References

For more information about how to change Word commands, visit the following Microsoft website:

Modifying a Word Command

For more information about how to customize the Office 2010 Backstage View, visit the following Microsoft Developer Network (MSDN) website:

Customizing the Office 2010 Backstage View for Developers

Nepieciešama papildu palīdzība?

Vēlaties vairāk opciju?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Vai šī informācija bija noderīga?

Kas ietekmēja jūsu pieredzi?
Nospiežot Iesniegt, jūsu atsauksmes tiks izmantotas Microsoft produktu un pakalpojumu uzlabošanai. Jūsu IT administrators varēs vākt šos datus. Paziņojums par konfidencialitāti.

Paldies par jūsu atsauksmēm!

×