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

Printing in 2004

Hello!

I have a rather small (but very anoying) problem while printing fra an AddOn in SBO 2004.

I'm not using any of SBO's non existing print functions, but the internal document printer in C#.

This all works fine, except the fact that my print dialog shows in the background. This means the user cannot see the dialog, unless he presses ALT+TAB.

Has anyone been in the same situation, or do I really have to solve this by some evil-ugly hack?!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2004 at 08:31 PM

    Hi Thomas,

    I had the same problem when trying to show the standard File Open/Save Dialog in C#. What I do for a work around is:

    1. Open the dialog, it will display in the background

    2. Create a timer which keeps firing until it finds the window handle for the dialog

    3. Bring the dialog to the front by changing its Windows Z-order

    Regard, Lita

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2004 at 09:02 AM

    Hi Lita.

    I suppose thats the only way to do it. Thanks a lot 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2004 at 09:37 AM

    Hey Lita.

    How exactly do you find the handler for a window?

    I have a printpreviwer and a printdialog opening in the background.

    This is probably more a C# question than SDK...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2005 at 03:41 PM

    Hi,

    See DI 6.7 OpenDialog

    HTH,

    Ribeiro Santos

    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.