question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Print settings

See original GitHub issue

I need set print settings but there are no functions on this API to achieve it.

I think that the implementation could be like worksheet.tabcolor() function.

Exceljs (https://github.com/guyonroche/exceljs) has implemented this by this PR: https://github.com/guyonroche/exceljs/pull/105

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
alandoyle95commented, Sep 25, 2017

i’ll work on this if @dtjohnson does not have time 😃 i could use it in my project as well anyway

sheet1.xml

<printOptions horizontalCentered="1" verticalCentered="1"/>
<pageMargins left="0.5" right="0.5" top="0.5" bottom="0.5" header="0.5" footer="0.36"/>
<pageSetup scale="77" orientation="portrait" r:id="rId1"/>

printOptionsNode:

// Create the Print Options.
        this._printOptionsNode = xmlq.findChild(this._node, "printOptions");
        if (this._printOptionsNode) {
            xmlq.removeChild(this._node, this._printOptionsNode);
        } else {
            this._printOptionsNode = {
                name: 'printOptions', attributes: {
                    paperSize: 9,
                    scale: 100,
                    firstPageNumber: firstPageNumber || 0,
                    fitToWidth: 1,
                    fitToHeight: 1,
                    pageOrder: 'downThenOver',
                    orientation: 'portrait',
                    usePrinterDefaults: 'false',
                    blackAndWhite: 'false',
                    draft: 'false',
                    cellComments: 'none',
                    useFirstPageNumber: 'false',
                    horizontalDpi: 300,
                    verticalDpi: 300,
                    copies: 1
                }, children: []
            };
        }
0reactions
Sanitha-11224commented, Mar 16, 2022

Can you please help me add a header and footer to all pages while printing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced PDF print settings - Acrobat Pro - Adobe Support
Select any of the panels on the left side of the Advanced Print Setup dialog box, and set options for either composite or...
Read more >
Get printSettings - Microsoft Graph v1.0
Retrieve tenant-wide settings for the Universal Print service. ... Permissions; HTTP request; Optional query parameters; Request headers ...
Read more >
Print Settings - OCLC Support
Use this screen to set your default print settings, logo image settings, and book strap and sticker settings in WorldShare Interlibrary ...
Read more >
Managing Print Requests - Oracle Help Center
Check the status of printers and print requests by using the lpstat command. Only the most commonly used options are shown here. See...
Read more >
Advanced Usage — Requests 2.28.1 documentation
Advanced Usage¶. This document covers some of Requests more advanced features. Session Objects¶. The Session object allows you to persist certain parameters ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found