|
I want to dynamically create a crystal report from .net code. Is ist possible.
Actually i have 20 fields in a table and i want to give user the option to select the fields he wants to view. Then genrate the report on the fly.
is it possible.i searched internet but could not find anything useful. all i could find is the reports or template are generated at designtime with the feilds added on them. but i donot want that i want the report to be created dynamically on th fly with user selected fields. The problem is if i create a template with 20 feilds which will be fixed and user selects first and lastfield then the space between those feilds cannot be adjusted. it will be blank. is there any othe solution for this.
any help will highly appreciated.
Thanks
Monica
|
|
|
|
|
I am using PrintDocument to Preview and print my data.
I want the duplex printing (My printer supports it).
When I execute
e.HasMorePages = true;
in Print event of myPrintDocument object. It keeps on printing the pages and starts the printing right from the beginning of my code in Print Event
(I think it is recursive?)
Please help me.
-- modified at 12:00 Saturday 22nd October, 2005
|
|
|
|
|
"e.hasmorepages=TRUE" means re-raise PrintPage Event.
What u wantto do?
|
|
|
|
|
I just want to print the next page (and avoid recursion). Don't want to execute the Print_Page code again for the page I have already printed.
|
|
|
|
|
Use something like that at below . If u still have problem send email to me with sample what you did ,
Dim PageNumber As Integer = 1<br />
Dim PageCount As Integer = 5<br />
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage<br />
Select Case PageNumber<br />
Case 1 : PrintFirstPage(e.Graphics) : e.HasMorePages = True<br />
Case PageCount : PrintLastPage(e.Graphics) : e.HasMorePages = False<br />
Case Else : PrintOtherPages(e.Graphics) : e.HasMorePages = True<br />
End Select<br />
PageNumber += 1<br />
End Sub<br />
<br />
Protected Sub PrintFirstPage(ByVal g As System.Drawing.Graphics)<br />
'PRINT PAGE<br />
End Sub<br />
Protected Sub PrintOtherPages(ByVal g As System.Drawing.Graphics)<br />
'PRINT PAGE<br />
End Sub<br />
Protected Sub PrintLastPage(ByVal g As System.Drawing.Graphics)<br />
'PRINT PAGE<br />
End Sub
|
|
|
|
|
I want to know how to copy file using code vb.net
|
|
|
|
|
How abourt posting the code your using. How does source get assigned? How does does dest get assigned? You could keep asking this question, but if don't understand the basics, you'lre never going to understand the answers either.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I know how to assign the source and destanation address of the file
for ex
file test.txt located in c:\ I want to copy it in e:\
dim pth as string="c:\test.txt"
dim pth2 as string="e:\"
file.copy(pth.pth2)
it dosent work
AMR-CIS
|
|
|
|
|
Don't delete your previous messages please. It makes it hard to track the conversation and takes away information from people joining in later.
Well, without knowing the exception that's being thrown (if any, hint hint!), the 5 most common problems are:
1 - The source file spec doesn't exist.
2 - The source file is locked by another process and can't be opened for read.
3 - The destination spec doesn't exist.
4 - The destination file path already exists and your trying to overwrite a file without telling the Copy method to do so.
5 - You don't have the appropriate permissions to write to the destination folder.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does VB have the @ for strings to show that there's no escaping going on ? Or does it work totally differently in VB ? I'm just wondering if his strings are actually containing what he thinks.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
No. All strings in VB are considered literal. There's nothing to escape.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
dim pth as string="c:\test.txt"
dim pth2 as string="e:\test.txt"
system.IO.File.Copy(pth,pth2)
|
|
|
|
|
Thanks its was small problem
AMR-CIS
|
|
|
|
|
hi
i've datagrid filled with some data,i used dataset to fill datagrid
Now i want to add some data to this existing(already populated) datagrid using datareader.
How can i do this?
if it's not possible to add using data reader can i do using arrays
|
|
|
|
|
can a datagrid populate with using datareader?
If u created table , add new row to the table then Refresh datagrid.
|
|
|
|
|
as per my knowledge we can't populate datagrid using datareader.any way can u tell me
how to bind two dimensional array to the datagrid
|
|
|
|
|
|
i got this ,thanq for response
|
|
|
|
|
thanq for ur response
i got this
|
|
|
|
|
when I read a bitmap data stored in a data base this differs from the original bitmap stored.
How can I solve my prblem??
|
|
|
|
|
The problem can be in either/both of two places. The code that wrote the image to the database or the code that read it, or both.
Without seeing any of it, it's impossible to tell you how to fix it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I know this is not true but i need immediate answer
I have Vs.net beta 2 copy, it s not original, I know, if the dvd is original, product key will automaticaly comes while setup progressing.
I have to install vs.net 2005 today immediately. please someone gives me his /her beta 2 product key . if not i wont complete my homework till monday. I think it s legal to share vs.2005 product key, BECAUSE it s Beta Please HELPPP
|
|
|
|
|
Greeky wrote: if not i wont complete my homework till monday
Gee - you have until Monday to do your assignment, and you're trying to pirate the IDE now ? Sounds like you deserve to fail.
Also, Microsoft products rarely have just one key, even if someone gave you one, it may well not work. If you're sure what you want to do is legal, call Microsoft, and ask them.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a listbox which contains days in a month and different currency rates, now the problem is displaying the different dates against currency fluctuations in a graph. Can someone help me with some sample code.(I'm using vb.net version 2002).
-- modified at 3:50 Saturday 22nd October, 2005
|
|
|
|
|
which graph method do u use? Is it multi column list box?
|
|
|
|