<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Visual Studio</title>
        <link>http://blogs.ugidotnet.org/franx_blog/category/Visual Studio.aspx</link>
        <description>Visual Studio in generale</description>
        <language>it-IT</language>
        <copyright>Francesco Geri</copyright>
        <generator>Subtext Version 2.6.0.0</generator>
        <item>
            <title>Generare la classe proxy da WSDL</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2015/05/27/102006.aspx</link>
            <description>Avendo a disposizione l'URL di un servizio web specificato tramite WSDL è possibile generarne la classe proxy tramite il comando wsdl.exe.

Aprire (ipotizzando di avere VS2012) il menu seguente:

Programmi\Visual Studio 2012\Visual Studio Tools\Developer Command Prompt for VS2012

Dal prompt posizionarsi nella cartella in cui si vuole generare il file della classe proxy e digitare il comando:

&amp;gt; wsdl.exe  /language:VB

Se si usa un url per il WSDL e c'è un proxy per l'accesso a internet, allora:

&amp;gt; wsdl.exe  /proxy: /pd: /pu: /pp: /language:VB

Esempio:

&amp;gt; wsdl.exe https://pteasb.actalis.it/ArubaSignService/ArubaSignService?WSDL /proxy:http://myServer.ACME.local:8080 /pd:ACME /pu:francescogeri /pp:myPassword123

&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/102006.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2015/05/27/102006.aspx</guid>
            <pubDate>Wed, 27 May 2015 12:14:17 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2015/05/27/102006.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/102006.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Problema con l&amp;rsquo;icona della Form MDI child quando &amp;egrave; aperta maximized</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2013/07/26/101626.aspx</link>
            <description>Se si apre un form MDI child come maximized si ha un problema nella visualizzazione della sua icona.   Basta creare un progetto con una Form MDI container (IsMdiContainer=True), mettere un Menustrip ed inserire il seguente codice per l’apertura della form figlia Form2:          Private Sub NewToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles NewToolStripMenuItem.Click


        Dim f As New Form2


        f.MdiParent = Me


        f.WindowState = FormWindowState.Maximized


        f.Show()


    End Sub





Il risultato sarà:





Anche se in realtà la form Form2 ha una sua icona, per cui il risultato doveva essere:



 

Per risolvere il problema ho trovato 2 modi (grazie alla stessa fonte):

Primo metodo
    Giocare con il SuspendLayout del menustrip:


  
    Private Sub NewToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles NewToolStripMenuItem.Click


        Me.MenuStrip1.SuspendLayout()


     


        Dim f As New Form2


        f.MdiParent = Me


        f.WindowState = FormWindowState.Maximized


        f.Show()


     


        Me.MenuStrip1.Visible = False


        Me.MenuStrip1.Visible = True


        Me.MenuStrip1.ResumeLayout()


    End Sub



 

Secondo metodo
    Inserire nella Load della form figlia la seguente riga di codice:


  
    Me.Icon = New Icon(Me.Icon, Me.Icon.Size)





Per cui, nel mio esempio, avrei:


  
    Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load


        Me.Label1.Text = "Sono la form 2 creata alle " &amp;amp; Now.ToString


        ' Fix del problema icona form figlia


        Me.Icon = New Icon(Me.Icon, Me.Icon.Size)


    End Sub

&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/101626.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2013/07/26/101626.aspx</guid>
            <pubDate>Fri, 26 Jul 2013 14:04:10 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2013/07/26/101626.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/101626.aspx</wfw:commentRss>
        </item>
        <item>
            <title>ASPOSE Libraries for .NET</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2013/03/28/101493.aspx</link>
            <description>When you need to process some Office file in your project you can use, for example, the Office automation mechanism. But it need to have Office installed on your machine.   Otherwise, for example, you can choose a third part library.    I think that you can find many libraries over the web, but, for my purposes, in some of the projects I worked on, I used Aspose libraries (home page http://www.aspose.com/).  With those libraries you can easily manipulate Office documents (Word, Excel, PowerPoint, Visio and Project!) without needing to have Office installed on your machine. You can open a navigate a document, or modify it or create a new document and fill it.     For example you can create a document with a table:               ' We call this method to start building the table.


    builder.StartTable()


    builder.InsertCell()


    builder.Write("Row 1, Cell 1 Content.")


    ' Call the following method to end the row and start a new row.


    builder.EndRow()


    ' Signal that we have finished building the table.


    builder.EndTable()




  Following image is grabbed from Aspose site:



 


  Aspose provides also libraries that allow you to manipulate PDF documents. 

  Like Office document, you can open, modify or create from the beginning a PDF document. 

  But you can also easily convert many documents types (Office, Html, Text, images) to the PDF format. The code to convert a document is very simple: 

  


  
    Dim doc As New Aspose.Words.Document(strIn)


    doc.Save(strOut, Aspose.Words.SaveFormat.Pdf)




  If needed, you can also converto to PDF/A. Other security features are available, like encrypt and decrypt PDF documents or sign it using PKCS#1, PKCS#7 and PKCS#7 detached signature types and with the use of digital certificate. No Adobe Acrobat Automation are required!


  Aspose libraries are availables also for OCR and Barcodes. 

  For example, we worked on barcode recognition. Using Barcode libraries you can recognize barcodes from images or PDF, or writes them into the files. And both 1D and 2D barcodes types are supported (you can see all supported barcodes from this url: http://www.aspose.com/.net/barcode-component/key-features.aspx). 

  Following code allows you to reads barcodes on a jpg file: 

  


  
    Dim reader As BarCodeReader


    reader = New BarCodeReader("C:\SamplePic\EAN13.jpg", BarCodeReadType.EAN13)


    Do While reader.Read()


        ' get symbology type


        Console.WriteLine("Symbology Type: " &amp;amp; reader.GetReadType().ToString())


        ' get code text


        Console.WriteLine("CodeText: " &amp;amp; reader.GetCodeText())


    Loop


    reader.Close()



 

Other libraries are concerning SharePoint, Cloud and JasperReports.

 

All this componentes are very useful in many cases, and they are available for .NET and are built using managed code and can be installed and deployed as a single .NET assemblies. If you prefere, the libraries are available also for java, but this feature is off topic for us! :) 
  You can buy the single developer kit for your needs, or the full license (Aspose.Total). 

 

  

You can get the OEM licence for unlimited royalty-free distribution, and I think this is a good solution.

 

The Aspose technical support is very good. You can count on a rich on line documentation with many code examples, dedicated forums with many posts and quick support responses!&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/101493.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2013/03/28/101493.aspx</guid>
            <pubDate>Thu, 28 Mar 2013 17:53:01 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2013/03/28/101493.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/101493.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Visual Inheritance nei controlli Windows Form</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2013/03/08/101464.aspx</link>
            <description>Dovendo fare in una stessa applicazione molte form di dialogo per l’immissione o visualizzazione di informazioni ho pensato di creare una form base (scheletro) che fosse impostata con le caratteristiche comuni (font, colore di sfodo) e con i pulsanti ok, applica, annulla. A questo punto tutte le form di dialogo ereditano da questa (invece che da System.Windows.Form.Form) e così si trovano automaticamente i pulsanti e tutto il resto.  Per posizionare i pulsanti ho pensato di usare un TableLayoutPanel in modo che ridimensionando le form ereditate i pulsanti si spostino nel punto giusto.  Però mi sono accorto che, in Visual Studio, dal Form editor il controllo TableLayoutPanel ed i suoi children risultano in sola lettura. Sostituendo il TableLayoutPanel con un Panel posso invece editare i controlli in esso contenuti.  Il problema è che, per poter essere editati nel Form editor, i controlli ereditati devono supportare la Visual Inheritance, ed il TableLayoutPanel non la supporta.   La cosa è documentata in questa pagina: Best Practices for the TableLayoutPanel Control.  Ci sono altri controlli che hanno lo stesso problema, come indicato nell’articolo Walkthrough: Demonstrating Visual Inheritance. In particolare sono:    WebBrowser    ToolStrip    ToolStripPanel    TableLayoutPanel    FlowLayoutPanel    DataGridView&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/101464.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2013/03/08/101464.aspx</guid>
            <pubDate>Fri, 08 Mar 2013 10:29:33 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2013/03/08/101464.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/101464.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Problemi con il Microsoft Visual Studio Version Selector su Vista/Win7</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2010/05/14/98564.aspx</link>
            <description>Può capitare con Vista o Windows 7 che facendo doppio click da Esplora Risorse su un file di progetto o di solution di Visual Studio non succeda nulla. Ovvero non parta Visual Studio.  Se capita, allora il motivo potrebbe essere la concomitanza di questi 2 fattori:  1) La UAC è attiva   2) Visual Studio è impostato per partire sempre As Administrator  Se è così allora si può fare una delle 2 cose seguenti:  - Togliere il flag “As Administrator” a Visual Studio, oppure   - Metterlo a “Microsoft Visual Studio Version Selector”  L’eseguibile “Microsoft Visual Studio Version Selector” è l’utility di Visual Studio associata all’estensione dei file di progetto e di solution ed ha il compito di capire di che versione di visual studio è il file e di avviare quella versione passandogli il file.    Per cui il selector parte, vede che il file sln è di VS2008, ad esempio, cerca quindi di avviare VS2008. Se questo però ha il flag As Administrator allora l’avvio non riesce.    Per impostare lo stesso flag sul selector bisogna individuarlo: si trova nella cartella (Drive C o quello che è):  [C]:\Program Files (x86)\Common Files\microsoft shared\MSEnv  L’eseguibile si chiama VSLauncher.exe, fare click con il tasto destro e aprire le Proprietà. Nel pannello Compatibility impostare il flag Run this program as an administrator:     &lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/98564.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2010/05/14/98564.aspx</guid>
            <pubDate>Fri, 14 May 2010 12:44:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2010/05/14/98564.aspx#feedback</comments>
            <slash:comments>7</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/98564.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>