I need to display reports in my asp.net page as one long continuous report. However, when printed, my boss would like the header to repeat. Is there a way to control this feature programatically (vb.net)?
first off, i realize this is kind of an odd request, try and ignore that :). my boss wants me to implement a copy row feature in a datagrid. essentially, i need to gather all the info from the current row and do an insert into the sql database that has all that info. i know that i can grab...
I have a user control "header.ascx" that I would like to load into a place holder on some of my webpages. It will be functioning like a header. Can anyone offer me some guidance on how to do this (VB)? I gather that I will need to do something like the following:
Dim ctlHeader as Proj.Header...
My delete command for my datagrid isn't working. I am using the following code:
Dim strSubCatID As String = dgSubCat.DataKeys(e.Item.ItemIndex).ToString
Dim dr As DataRow
Dim i As Integer
For i = 0 To DsBudget.Tables("SubCat").Rows.Count - 1...
I am attempting to write some code to delete a row from a datagrid. My code is throwing the index out of range error right on the first line of code in my deletecommand event:
Dim strSubCatID As Int32 = dgSubCat.DataKeys(e.Item.ItemIndex)
Dim dr As DataRow
Dim...
I have been using my footer as a sort of add new record feature. Today I discovered an article that shows you how to display a "total" field in the footer. Any ideas on how I could do both of these? My add new record feature works a little different than usual. There is an "add" button...
I am trying to add a dropdownlist to a datagrid. I am using code that I got from the learnvisualstudio.net videos. I am getting the following error when I click the edit linkbutton:
Object reference not set to an instance of an object.
It points to...
Is it possible to attach a datareader to a crystal report? I successfully attached a report to a dataset but can't figure this one out. Here is the code I tried (vb.net):
Dim SqlConn As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("SqlConn"))
Dim cmd1x1x61 As...
I have 2 tables in a dataset. Vendors (vendorid, vendor) and Invoices (InvoiceID, InvoiceNo, VendorID). I created a relationship making vendors the parent table and invoices the child table (with vendorid the primary key in vendors and the foreign key in invoices). If I preview data on the...
I want to load 5 tables into a dataset using the fillschema method on 5 data adapters. I want to use fillschema so that I can have all necessary tables in the dataset with relationships. I need multiple tables in there so that I can create dataviews to attach to the dataset (using data from...
I have created a budgeting database for my boss. I have one table with purchasing information in it (invoice no, vendor, amt paid, etc) and in another table I have a list of categories (hardware, software, etc) and the alocated budget amount for that category. Some of the categories do not...
I was just looking at the FAQ article on getting values from any location in the registry (using an API call). I need to adapt the code to check for the existence of a key in a specified location rather than the getting the value of a key.
Specifically, I wish to check...
I would like to have my Word XP macro grab a value from the registry in order to determine if a certain network printer here at work is installed on their machine. Does reading registry values in VBA cause any sort of corruption? I had previously written a macro for use here at work that wrote...
I am trying to make the code in my macro as efficient as possible so that my macro will not take as long to run. Are there any general VBA guidelines for Word that you can suggest?
A general overview of my macro is that the user inputs information into a userform and when completed, the user...
i am trying to write a macro in outlook that will insert an "e" with an accent. I tried to do it this way:
Dim strE As String
strE = Chr(233)
Selection.typetext Text = (strE)
i'm getting an error "object required" on the second line. I usually write macros in Word so Outlook macros are a...
I have heard of auto macros that you can use in VBA (AutoExec, AutoOpen, AutoNew, AutoClose, AutoExit). A consultant was hired to create a macro at my work. She wrote a procedure of Sub Auto(). What does Auto do when it is used by itself mean?
I want to control the visibility of certain frames on a form (Word XP). I would like to create a collection of the affected frames. I know I have to create a variable and declare it as a collection and that I use the add method to add things to the collection. How can I add the frames to the...
This is a very obscure problem but I am hoping someone can help. I have the following module in a Word XP global template that is located in the startup folder of everyone's machine here at my work. My code checks to see if a printer is installed (called "DPFPrint") on a user's...
Can anyone confirm that it isn't possible in Word XP to control the enabled property (through code) of a single tabbed page in a multipage control? I have referenced a thread below where we tried to figure this out. It doesn't seem to be possible.
thread707-769607
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.