A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/MatthewHerbst/react-to-print/issues/382 below:

Styles missing in print dialog · Issue #382 · MatthewHerbst/react-to-print · GitHub

Hi,

I have a component that looks like this -

But when I print this, I get this in the print dialog -

I am using bootstrap grid with react (which uses flexbox). I am using the library like this -

const deliveryOrderTableRef =
    useRef() as React.MutableRefObject<HTMLDivElement>;
const printPage = useReactToPrint({
    content: () => deliveryOrderTableRef.current,
    copyStyles: true,
});

<div className="delivery-order-table" ref={ref}>


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4