Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:58:14+00:00 2026-06-08T11:58:14+00:00

we have admin dashboard build in gwt and deployed on google app engine for

  • 0

we have admin dashboard build in gwt and deployed on google app engine for java. On the dashboard there is a feature called “my card” where a blood donor can see his blood donor registration card with us.

Currently, we are creating and storing this card on google storage and when someone goes to “My Card” we render the card using iFrame in our dashboard.

We want to give the ability to print this card. Please tell how to do it?

just to add on i tried Print.it jar but seems like it is obsolete and does not play nice with gwt anymore

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:58:16+00:00Added an answer on June 8, 2026 at 11:58 am

    Add this script to the iframe content page’s tag

    <script type="text/javascript">
    function printPage() {focus();print(); }
    </script>
    

    Add this native method to your GWT class

    public native void printIframeContent(String id)/*-{
        var iframe = $doc.getElementById(id);
        var ifWin = iframe.contentWindow || iframe;
        iframe.focus();
        ifWin.printPage();
        return false;
    }-*/;
    

    The action handler for print button’s click event.

    public void onClick(ClickEvent event) {
        printIframeContent("printiframe"); // Use the correct id for your iframe
    }
    

    Code is derived from this discussion

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an app in CodeIgniter, and I want to have admin pages
I have to admin there is slight difference between the columns from both tables.
in my Rails app have this routes.rb: devise_for :admin namespace :admin do root :to
I have two directories within my codeigniter controller. /controllers/admin/ dashboard.php content.php enquiries.php /controllers/members/ profile.php
I don't have admin rights to my pc, but would like to use Mercurial
I have an admin model with a few inline models included with it (see
I have an admin view which contains four foreign keys each with a few
I have an admin module and I want it to serve dynamic controllers, i.e.
I have an admin controller located in controllers/admin/admin_controller.rb I also have a pages controller
I have an admin site set up as a virtual applcation inside of another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.