跳至主內容

搜尋

搜尋

Help With Coding In Visual Studio Express 2010

評論

3 條評論

  • Avatar
    Legacy Poster
    Nevermind ...  after spending quite a bit of time researching and reading I think I have something that is going to work. I just need to add some error checking to make sure textboxes do not get left blank and such.  here is the code I am using in case it might offer some help to someone else who mught be trying something similar.  this was done in Visual Studio express 2010. 
    
    
    'Declaring  BarTender application variable
            Dim btApp1 As BarTender.Application
    
            'Declaring BarTender format variable
            Dim btFormat1 As BarTender.Format
    
    
    
            'Instantiating the BarTender object
            btApp1 = New BarTender.Application
            btFormat1 = New BarTender.Format
    
    
    
            'Setting the BarTender format to open
            btApp1.Formats.Open("C:\UL Label\ul_label.btw")
    
    
    
            'Setting the BarTender Application Visible
            btApp1.Visible = False
    
            btApp1.ActiveFormat.Databases.QueryPrompts.GetQueryPrompt(1).Value = TextBox1.Text
            '
    
            btApp1.ActiveFormat.IdenticalCopiesOfLabel = TextBox2.Text
    
    
            btApp1.ActiveFormat.PrintOut()
    
    
            btApp1.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
    
    0
  • Avatar
    Domingo Rodriguez
    版主

    Hello Tom,

     

    How did it go with the programming?

     

    Please notice that you can choose which programming language you're going to use for "Visual Studio Express". There are several installations you can do, such as Visual Basic, C#. In fact, on my PC, I've installed Visual Studio Express 2010 for Visual Basic, C++ and C#

    0
  • Avatar
    Duy Phung Duc

    hi ,
    using BarTender;

    BarTender.Application btApp;
    BarTender.Format btFormat;
    BarTender.BtPrintResult btPrintRtn;
    BarTender.Messages btMsgs;

    private void button8_Click(object sender, EventArgs e)
    {
    btApp = new BarTender.Application();
    btFormat = btApp.Formats.Open(@"C:\Users\Administrator\Desktop\TEM_2019.btw", false, "");
    btPrintRtn = btFormat.Print(comboBox1.Text, false, -1, out btMsgs);
    btFormat.Close(BarTender.BtSaveOptions.btDoNotSaveChanges);
    btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);
    }

    DataTable bang_may_in = new DataTable();
    SqlDataAdapter doc_ghi_may_in = new SqlDataAdapter();
    private void danh_sach_may_in()
    {
    // phan quyen quay
    bang_may_in = new DataTable();
    string lenh = string.Format("select * from may_in");
    doc_ghi_may_in = new SqlDataAdapter(lenh, chuoi_lk);
    SqlCommandBuilder doc = new SqlCommandBuilder(doc_ghi_may_in);
    doc_ghi_may_in.FillSchema(bang_may_in, SchemaType.Mapped);
    doc_ghi_may_in.Fill(bang_may_in);
    }

    0

登入寫評論。