locked
Unable to print itinerary Container panel in React RRS feed

  • Question

  • Hi i want to print the map along with navigation panel (itenearry container) 

    I am using React class "react-to-print" to print the same

    At first i tried printing only map without itenarry container and i was able to print the map.

    however when i set the itenarry container inside my element using the command  directionsManager.setRenderOptions({ itineraryContainer: document.getElementById('printoutPanel') });

    then i was unable to print anything.is this the known issue? please guide me if i am doing something wrong.any help would be greatly appreciated

    <style>.tb_button {padding:1px;cursor:pointer;border-right: 1px solid #8b8b8b;border-left: 1px solid #FFF;border-bottom: 1px solid #fff;}.tb_button.hover {borer:2px outset #def; background-color: #f8f8f8 !important;}.ws_toolbar {z-index:100000} .ws_toolbar .ws_tb_btn {cursor:pointer;border:1px solid #555;padding:3px} .tb_highlight{background-color:yellow} .tb_hide {visibility:hidden} .ws_toolbar img {padding:2px;margin:0px}</style>

    Friday, December 11, 2020 7:22 PM

All replies

  • Hi James,

    React is not a Microsoft product. I would recommend asking how to print from React in a react forum rather than in a Microsoft forum.

    Sincerely,

    IoTGirl

    Monday, December 14, 2020 11:27 PM