|
Dim rpt As cry1
rpt = New cry1()
Dim RptForm As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim T As CrystalDecisions.CrystalReports.Engine.TextObject
RptForm = rpt 'rpt is your report object
T = RptForm.ReportDefinition.Sections(1).ReportObjects(0)
T.Text = Date.Today
rpt.SetDataSource(d)
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.Show()
|
|
|
|
|
Hello, This is Vikash.
I have created an OCX Control in VB6.0 for Controlling a USB Device.
In the OCX Control I have a function where I get data from the USB Device.
Now my query is How Can I pass this data from OCX Control to a Textbox on the same WebPage.
Anyone Having any idea, or Can it be done in the first place.
If Yes, then some ideas please.
Thanks in Advance.
|
|
|
|
|
I believe that if you create a COM object in VBScript, you can access it's properties. An IE web page can run VBScript on the client, and of course, your site will now only work in IE anyhow.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks Christian for the reply.
Actually, I have a USB Card Reader.
And I am getting Data from this Device in an Event when some Card is swapped on the device.
Bcoz of this event I need to use the OCX Control to trap the event and get data.
Now I need to Pass this data to my WebPage which will take this data, Search for a Match in the DB and Display other details like Name, Code, Image of the person who has punched the Card.
Any Idea please, I need to somehow get this information.
Christian any more Ideas please.
|
|
|
|
|
hi i have created a site using asp.net 3.5 and have used access database.
can anybody tell me how cud i upload the database to online server.
and what changes shud b made in connection string...thnks....
|
|
|
|
|
Store the mdb in server.mappath
give the connection string
New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;
data source=" & server.mappath("YouName.mdb"))
i Guess
|
|
|
|
|
You can store it in App_Data folder. Assign the database path on connection string. If you have any doubt on connection string,refer this site.[^]
|
|
|
|
|
i have already tried as u told but it does not work...
|
|
|
|
|
|
What is the error message?
|
|
|
|
|
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine
|
|
|
|
|
It astounds me that almost every day, people here are stupid enough to post an 'error message' that is giving them explicit instructions on what to do, in order to see the real error message.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
sir i have followed that instructions but the problem is not that...
|
|
|
|
|
You have an error, you don't know what it is because of your web config settings. So, fix that and find out what is wrong.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Your web config settings hide the actual error. You can view it by change the custom errors mode “On”. But I don't recommend it because of security concerns. You please implement any error detecting mechanism and come back with the error.
|
|
|
|
|
Good Morning All
Click once Deployment was made for Win apps, and i really like it. I have more that 30 Clients in Different Countries and every time i need to VPN(Slow) uninstall and install or Replace a DLL. My apps are Web Based apps. is there a way that you can suggest , that i can use to do the same thing as a Click once Deployment for a Web Project ?
Regards
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
No - click once puts apps in a folder outside of the program files structure, you can't control that ( which is one reason click once is crap ). You need to put a web app in the right folder for it to work, so it's not going to work for you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks Chris
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi all I am a new user of dotnet
I want to set the default setting of control so that I can paste the control any where in asp page
|
|
|
|
|
I suspect you're used to winforms. ASP.NET generates HTML, which is a flow design. It's not about pasting a control into a specific location, you design the flow of your page. You can use CSS to position things, but absolute positions, while possible, are generally a bad idea. Your site should work to fit any users screen resolution.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
if you are talking about visual inheritance in windows forms application then you need to understand asp.net masterpages..
as far as user controls are concerned you create and place where ever you want....and for positioning you can have style sheet and themes for server side control at a common place..
Government Dyal Singh College Lahore.
|
|
|
|
|
There are a few ways of positioning controls. As mentioned in the previous replys, your best bet is to use a style sheet(css) to position controls on your web page.
1)You can create tables with rows and columns and basically just drag and drop controls into table cells and let them postion themselves but I don't recommend this. You'll run into a ton of cross browser positioning issues.
2)Use the cssClass attribute of your control and assign it to a class in your style sheet. Your css class can be set to postion a control relative to other controls on your page, or set you control to an absolute position on the page. Personally I like using relative postion to something like a main div on the page. Using relative postion will keep your controls in the same spot relative to the main div when a user resizes the page. Using absolute position will leave a control in the same spot when a user resizes the page. You might want to play around with both till you get comfortable...
Css examples:
.relativeControl
{
display:block;
postion:relative;
top: 100px;
left: 100px;
}
.absoluteControl
{
display:inline;
positon:absolute;
z-index: 100;
top: 100px;
left: 100px;
}
I hope this helps. Have fun
|
|
|
|
|
hi sir,
can i change crystal report connection string from web.config if yes then how.
please help me.
i want if i am on pc1 then my connection string for crystal report should be for pc1 and if i am on pc2 then connection string of crystal report should be for pc2.and i am using connection string from web.config.
and i can change my web.config connection string as per requirement.now same i want for crystal report.
thanks
|
|
|
|
|
How is your web.config going to know if the user is on PC1 or PC2 ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
actually i can save my connection string in web.config from the front end.developer can enter the connection string initial catalog=database name;uid=sa;pwd=;server=system11 or what ever it is .
and my application is working fine but now i want my crystal report connection string also use this connection string .
please help me.
|
|
|
|