Hi all

Is there a way to open a new window, directly to the print preview view, with php or can this only be done via something like Javascript?

Thanks

    the easier way is to open a page that you have premade then use variables to fill it. then using javascript:

    <body onload=javascript:print();>

      Hi ashley98860615

      yeah this would be one way round it but not sure on how i would go about even organising a page so that it looks like a print preview page? is there any source code, tutorials on this type of thing?

        the solution to you problem might be easier than what u think

        just open a new window with the link tag in ur html and send the data throug the header or something 🙂

        <a href="javascript:void(0);" onclick="javascript:window.open('yourpage.php?id=$id', '_Details', 'width=750, height=500, scrollbars=1, resizable=1');">LINK_NAME</a>

        This will open a new windows with 750x500 dimension on the url indicated 🙂

        happy coding 😃

        P.S. If this solves ur problem, mark this thread as solved 😛

          You create a printer friendly page by using CSS on the same content that you have in the original page, which you have also styled with CSS.

          If you are not doing it with CSS then get with the program and learn how to write html properly.

            Write a Reply...