Hi, below is the code i got to print a datagridview, the trouble is it also prints visible columns which i don't want to be printed. Does anyone have any ideas on how i could change the code so it won't print these columns?
[CODE=vbnet]
Private Sub PrintDocument1_ BeginPrint(ByVa l sender As Object, ByVal e As System.Drawing. Printing.PrintE ventArgs) Handles PrintDocument1. BeginPrint
datagridprint = DataGridView1...
User Profile
Collapse
-
Print Datagridview Issue
-
Main form to unlock subform when required feilds are entered
Hi, I have a problem with subforms. I want to lock a subform until all the required data is inputted in the main form.
The required fields in main form:
Invoice Number
Invoice to
The main form is called:
Invoicing
And the subform is called:
Products subform
Thank you -
Hi, I also have a problem with subforms but what I want to do is slightly different. I want to lock a subform until all the required data is inputted in the main form.
The required fields in main form:
Invoice Number
Invoice to
Thank you -
Hi, yes I am using MS Access, I actually managed to figure out the code before I saw the post from CaptainD (Thanks anyhow). This is the code I ended up using:
Private Sub Command51_Click ()
On Error GoTo Err_Command51_C lick
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Invoices"
stLinkCriteria = "[Invoice Number]="...Leave a comment:
-
Filtering Report from form
Hi. im trying to setup a filter for a report. Let me explain what I would like to achieve. I have a form called Invoicing, here all the data is put in about the invoice, I then have a report also called invoicing. I would like to be on the invoicing form and click a button saying view invoice, this then takes the invoice number from the form and filters out all the other invoices so only that 1 invoice is shown.
Details of the fields,...
No activity results to display
Show More
Leave a comment: