vb.net

Header printing on every page.

I have a gridview that i want to print its header on every page and i want to print a page header on every page. The problem is that one or the other works for me. I can't get both to work at the same time. Below is sample code to show what i've done. <table> <tr> <td> <body onload="thead('tblheader');"> <table id="tblheader">...

webservice problem

hey all i have a problem in webservice that i am consuming. it takes a string parameter which if i sent empty it does not return anything but if i check the output in the soap ui by removing this string parameter then it return fine. can somebody help me out that how can i do this in vb.net that i either not send this parameter or if i s...

Testing user role , Authorize attribute in VB.NET

Hi, I am using ASP.NET MVC to build a site. I am using VB as programming language.I have couple of questions. 1 I have created a role "Manager". How Do I check if a user belongs to this particular role? For now I am using If My.User.IsInRole("Manager") Then 'Direct to a view Else 'Direct to another view End If Is this the right wa...

How to get data from crystal report viewer's fields to local variables in C# or VB.Net ?

I need to get data from reports fields to open others windows forms or other reports, How I can get the values of reports fields to pass to local C# o VB.net variables ? ...

Having a threading issue with tesseract/tessnet2, works with one thread but not two?

Howdy, I'm attempting to use OCR to automate some of the QA process we have in place at work. A QA worker gets one terminal open per document scanner, and as work orders are scanned, they appear in the terminal, and information from this terminal is entered into a different tool to be added to a database, then the QA worker signals they ...

What is the file path, as a string, of a file in the application's resources?

The reason I ask is that I want to print, at run-time, a file in the application's resources, like this: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim printProcess As New Process printProcess.StartInfo.CreateNoWindow = True printProcess.StartInfo.FileName = "C:\Users\Ge...

Can't Create ActiveX Control

Hey Everyone, Working on getting a legacy app up and running again for work. I'm getting an error at run time that I can't create an activeX control. The suspect call is oSQL = CreateObject("SQLDMO.SQLServer2") I did a bit of googling and found that SQLDMO should be in a SQLDMO.dll. I've got that DLL referenced in my project but it i...

How to create custom objects/list of custom objects in VB.NET?

I need two seperate lists, which every item is Integer, String, Bitmap - and one which every item is Integer, String String. However I don't know how to do this, or even where to look - I've googled for custom objects and custom object lists. What I'm trying to do is this. Custom Object1 is Integer, String, Bitmap Custom Object2 is Integ...

VB.Net and C# Projects in 1 Solution

Is there a way for me to create multiple projects using different languages under 1 solution in VS 2008? If so, how? ...

Bug in VB compiler and/or IntelliSense in both C# and VB WRT out-of-scope Property Setters and ByRef fn() Parameters

I've noticed some seemingly weird issues in Visual Studio 2008 (.NET 3.5) and also in Visual Studio 2010 Beta 2 (.NET 4.0). These issues may have existed in prior versions as well. Maybe they are not an issue, but either way, I would like to see if there is are logical explanations for these before I submit a report on Microsoft Connec...

how to convert word document to pdf using vb.net?

how to convert word document to pdf using vb.net using a free component like pdfsharp or itextsharp... ...

UltraTree - setting columns?

I'm using UltraTree with vb.net and I'm finding it is super easy to bind it to parent/child dataset and it populates the treeview nicely. However I need to hide certain columns, and I can't figure out how to do this in code. I can't use the designer since I'm using code to bind my dataset and that seems to override whatever I set in the...

Open multiple files using arguments

Hi, I'm using this code to load multiple files using windows context menu, but the problem is that the aplication is open many times as files the user has selected. For example: If I select 14 files, an open them with the application, the aplicacion is opened 14 times and load the form only one. But there is a way to send all argument...

Get HTML Source after JavaScript manipulations

How do i get the full! HTML source of a web page, after it has run some JavaScript code which has made manipulations to the HTML source. I'm using the WebbrowserControl of VB.Net, i'd like to create an extra function of my custom webbrowsercontrol which receives the full HTML source. Thanks in advance ...

Upload a Flash file to server in ASP.NET MVC

Hi, I want to provide an option to upload a flash file onto my server for my customers. I am using ASP.NET MVC with VB. I am looking for code with in controller to upload file to my server and rename it, and the necessary security measures I need to consider. Any pointers to a reference is fine. Thanks in advance. ...

AddHandler only if no handlers for this event?

I want to set an event handler only if this is not set: If GetHandlers(MyWindow.Closed, AddressOf MyWindow_Closed).Length = 0 Then AddHandler MyWindow.Closed, AddressOf MyWindow_Closed EndIf ...

Declare return Type of the Function when there are two possible returned types

Hi, I have the following statement, I want to turn it into a Public Shared Function : If isEmployee Then Dim employeeInstance As New Employee employeeInstance = GetEmployeeInstanceByUserId(userId) Return employeeInstance Else Dim studentInstance As New Student studentInstance = GetStudentInstanceByUserId(userId)...

Will there be more C# or VB programmers for .NET & Silverlight?

Which language is preferred by most developers especially targeting .NET & silverlight? Is it C# or VB.NET? Are there any advantages/disadvantages of both languages when compared with each other? ...

Post data from VBscript

Hi! I have a function that need to accept two parameters- user and folder! I call that function from VBscript, and parameters need to be send with post method. This is the Vbscript function code from where I want to post data: Sub loadDocument() Const HOST = "http://192.168.0.144/webservice13/service1.asmx/Lock?User="&amp; PC\User & "f...

What StyleCop like tools are there for VB.NET

see also VB.NET Static Code Anaylsis For better or for worst we now have a VB.NET coding standards document that is based on a C# coding standard as enforced by StyleCop. For example the number of spaces you should put in each side of a “+” sign etc all instance Members (fields and methods!) must be access as “me.fieldName” all sha...