none
how to create combo box, text box on visio page using vb.net RRS feed

  • Question

  • Hi all,

    I am new to vb.net. I want to create a report where end user can design the report by himself.i.e when user clicks  create text,create label,create multi select buttons. those controls should display on visio editor with movable,resize option and save it for next time use.

    i am able to create visio shapes using stencil window through code but did not know how to create text box or combo box with movable, resize option.

    i need help . Thanks in advance

     


    Vamsi
    Friday, February 3, 2012 2:18 AM

Answers

  • There's two parts to the question: the report creation process, and the embedding of controls in a vb.net application. The first part is probably the easiest in that the  report generation issue using vb.net may not be focussed on the appropriate product. For user created reports I prefer a generalized implementation of the ReportControl going after SQL data.

    The second part of using Visio as a report generation tool with vb.net as the language. The two most obvious solutions are either a VSTO implementation or a WinForms (visio drawing activex control) implemenation. Both of course require Visio to be installed. Both will require a storage plan (for the report definition), possibly SolutionXML. The biggest part of the problem (that I can see) is the capturing of control events by the application. I'd probably start with v2010 and build pseudo controls using containers and lists (visio objects). There's already a stencil with some of the basic shapes. The programmer has pretty much complete control of how they want to interpret the user's design requests (fonts, sizes, styles, etc.).

    hth,

    al

     


    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Al Edlund Visio MVP

    • Edited by Al Edlund Monday, February 6, 2012 3:47 PM
    • Marked as answer by Bruce Song Friday, February 10, 2012 9:15 AM
    Monday, February 6, 2012 3:46 PM

All replies

  • Vamsi, 

    In VB Net 2010 (full versions) is a Visio 2007 and a Visio2010 Add In which can be used with VB Net.

    And with that I'v all my knowledge about it written.

    Maybe the boys and girls in this forum can help you if you don't get your answer here

    Visual Studio Tools for Office

     http://social.msdn.microsoft.com/Forums/en-US/vsto


    Success
    Cor
    Friday, February 3, 2012 7:51 AM
  • Im not sure i understand your question correctly, but if you want to automate visio from your VB.NET application, try this article from microsoft http://support.microsoft.com/kb/305199

    Also, another article on how to create visio from .NET, this is C# code but it easy to translate to VB.NET.  http://www.codeproject.com/Articles/109558/Creating-VISIO-Organigrams-using-C

     

    Below links are online code conversion sites where you can convert the code from c# to VB

    kaymaf

     


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Friday, February 3, 2012 6:18 PM
  • Hi Kaymaf,

    Thanks for your reply. I am able to get  visio in my windows application and i am able to draw visio shapes using stencil window. But my problem is how to create text box,combo box,label. i.e when user click create Text box button,  text box should appear on visio editor with movable and resize properties just like the visio rectangle shape when we create from stencil window.

    Do assist .

    Thank you


    Vamsi
    Saturday, February 4, 2012 2:12 AM
  • check automation of visio using vb.net

    http://support.microsoft.com/kb/305199


    java
    Saturday, February 4, 2012 5:14 AM
  • Hi desabhotla,

    Welcome to the MSDN forum.

    This queue is about VB.Net. I’m afraid that your topic about Visio is unsuitable here. For better support, I will move this thread to General Office Development forum.

    Sorry for any inconvenience and have a nice day.


    Mark Liu-lxf [MSFT]
    MSDN Community Support | Feedback to us
    Monday, February 6, 2012 6:33 AM
    Moderator
  • There's two parts to the question: the report creation process, and the embedding of controls in a vb.net application. The first part is probably the easiest in that the  report generation issue using vb.net may not be focussed on the appropriate product. For user created reports I prefer a generalized implementation of the ReportControl going after SQL data.

    The second part of using Visio as a report generation tool with vb.net as the language. The two most obvious solutions are either a VSTO implementation or a WinForms (visio drawing activex control) implemenation. Both of course require Visio to be installed. Both will require a storage plan (for the report definition), possibly SolutionXML. The biggest part of the problem (that I can see) is the capturing of control events by the application. I'd probably start with v2010 and build pseudo controls using containers and lists (visio objects). There's already a stencil with some of the basic shapes. The programmer has pretty much complete control of how they want to interpret the user's design requests (fonts, sizes, styles, etc.).

    hth,

    al

     


    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Al Edlund Visio MVP

    • Edited by Al Edlund Monday, February 6, 2012 3:47 PM
    • Marked as answer by Bruce Song Friday, February 10, 2012 9:15 AM
    Monday, February 6, 2012 3:46 PM