Skip to Content

How to print the sap.ui.vbm.GeoMap area?

Hi All,

We are working on custom SAPUI5 Application development. In my case, we need integrate print functionality. i want to print the Geo map area alone.

If i choose windo.print();,it prints the entire screen.

this is the code, what i ma trying.

	var ctrlString = "width=600px,height=600px";
			var wind = window.open("", "PrintWindow", ctrlString);


			//writing header and 
			wind.document.write(oGeoMap); // this is the key part 
			wind.print(); //calling print
			wind.close(); //closing print
			window.print();

oGeoMap is , i am getting from view by using this.getView().byId();. It is not working.

Please help me to solve this .

Thank you,

Regards,

JK.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • May 21 at 05:07 AM

    Hi Jayakrishnan Chandramohan, Will this help? https://plnkr.co/edit/Go9lSWssIuU6f0nrUieP

    Here I am using property to print only list items.

    Regards,

    Karthik Arjun

    Add comment
    10|10000 characters needed characters exceeded