Preview Content
This content will be displayed in the print preview.
### Install Vue Print Next via Package Manager
Source: https://context7.com/alessandro-pang/vue-print-next/llms.txt
Commands to install the library using common Node.js package managers.
```bash
npm install vue-print-next --save
# or
yarn add vue-print-next
# or
pnpm add vue-print-next
```
--------------------------------
### Install Vue Print Next via Package Manager
Source: https://github.com/alessandro-pang/vue-print-next/blob/master/README.en.md
Commands to add the vue-print-next dependency to your project using common JavaScript package managers.
```bash
npm install vue-print-next --save
yarn add vue-print-next
pnpm add vue-print-next
```
--------------------------------
### Print Entire Page with Vue-Print-Next
Source: https://github.com/alessandro-pang/vue-print-next/blob/master/README.en.md
This example demonstrates how to print the entire current web page using the v-print directive without any parameters.
```html
```
--------------------------------
### Print Partial Content using Ref with Vue-Print-Next
Source: https://github.com/alessandro-pang/vue-print-next/blob/master/README.en.md
This example demonstrates how to print a specific DOM element by obtaining a reference to it using Vue's `ref` and passing it to the VuePrintNext constructor. It requires importing `ref` and `VuePrintNext`.
```vue
This is the content to be printed This is the content to be printed Watch the console for callback events. Generated: {{ new Date().toLocaleDateString() }}Callback Demo
Monthly Sales Report
Month Revenue January $15,000 February $18,500 March $22,000
This is the content to be printed
This is the content to be printed
This is the content to be printed
This note will be excluded from printing.
This entire page will be printed when the button is clicked.
This is the content to be printed
Document content with configurable paper settings.
This content will be displayed in the print preview.
This content will be printed using a DOM element reference.
Introduction content goes here...
Main content goes here...
Conclusion content goes here...
Content with external CSS applied.
Compatible with Vue 2 applications.
Only this content will be printed.
This is the content to be printed
Content with customizable preview toolbar.
Gourd baby, gourd baby
This should not be printedSeven flowers on one vine
This should not be printedNot afraid of wind and rain
This should not be printedThis is the official contract content.
Terms and conditions apply.
Draft watermark - will not printSignature: _______________
Date: _______________