cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jayakrishnan
Active Participant
0 Kudos
173

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

karthikarjun
Active Contributor
0 Kudos

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

Here I am using property to print only list items.

Regards,

Karthik Arjun