Skip to Content
author's profile photo Former Member
Former Member

Print and Export to Excel a TableView

I have a 6.10 BSP application that shows in one of its views many registers result of a Select, this registers are shown in a TableView, I want to put a button on the bottom of the screen so the users can click on it and Print only the TableView and not the rest of the view, How can I do this?. Right next to the button for Print I want to put another button so the users can click on it and Export to Excel the same TableView, again How can I do this?.

Thanks in advance,

Ruben Hopkins.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Feb 14, 2005 at 11:20 PM

    You might also want to look at this weblog:

    /people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table

    It offers the solution as a custom BSP extension. However I see that you said this was a 6.10 version BSP. Its been quite a while since I worked on a 610 system, but I would image most of what is discussed would need at least a 620 system.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 08:36 PM

    Take a look at the weblogs from Thomas:

    /people/thomas.jung3/blog/2005/02/14/bsp-and-microsoft-excel--learning-to-live-together

    /people/thomas.jung3/blog/2004/08/09/bsp-download-to-excel-in-unicode-format

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2005 at 08:39 PM

    You should first read at least one of the weblogs from Thomas on this topic. He does describe a lot of ideas.

    My simplest idea for print would be just do a window.open with a new URL. This new page only renders the table in very simple HTML (no complex CSS, etc). At the bottom of the page do a print button = window.print() and a close button = top.close(). Primitive, but it is going to work.

    The excel export stuff has been discussed to death in this forum already.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.