I am using VB.NET for coding and SQL Server 2005 for database.
My application is ready for release. Just on thing missing before I can go live.
I want to implement license concept in my application.
My license file can be text or xml file. In which there should be some encrypted matter which will be used for validate the application.
Please suggest how I can implement this functionality in my application
Thanks.
Best Regards,
Solution
Related
I have a lightswitch project in visual studio 2013, using vb.net. I would like the user to be able to click a button and have lightswitch find an excel file, and upload that file to a sql table according to a pre-determined column mapping.
My preference was to use the Office Integration extension for visual studio, which I got working with VS 2013 by downloading it from this link: http://www.ge.tt/71iuRQv/v/0
However, the documentation and examples for office integration seem to be very heavy on getting an excel spreadsheet into a display in the lightswitch web client, rather than into the sql data table, which is where I need it. Here are the examples I've been following:
http://blogs.msdn.com/b/bethmassi/archive/2012/07/18/new-and-improved-office-integration-pack-extension-for-lightswitch.aspx
Alternatively, I have an existing stored procedure, and I can request that the server call this stored proc by sending a web API extension from the client to the server. I have this working already for other stored procs, according to examples from Beth Masi and Paul van Bladel. (Stackoverflow won't let me post the links...)
The undesirable part of this approach is that the stored proc is old, and messy.
I've searched and searched, but have yet to find anyone approach this problem for VS 2013 with lightswitch. Any useful advice?
I've used the method detailed by Matt Sampson to store word files and it works very well. Since it just stores the raw binary it should handle Excel files just as well.
If you're creating the table in LightSwitch, use the Binary Type. If you use SQL create scripts use varbinary(MAX).
You need to create a custom Silverlight dialog box to gain access to the OpenFileDialog object. Then open the file in as a FileStream.
Finally, you need to add a handler for the closed method of the control and then show the control to the user. Most likely done in a button. This needs to be done on the main dispatcher.
The code examples are in C# but I just used one of the many available translators out on the web and copy/pasted the VB.NET code.
Another option might be to consider shelling out to the DTSEXEC run-time to execute an SSIS package to perform the upload - especially if the target Excel spreadsheets have predefined layouts and content data types.
Even simpler, you might be able to use the SQL Server BULK INSERT command to get the job done - although that would require a SQL Client connection to your database.
HTH
I have created a functioning LightSwitch (Visual studio 2012 Pro) application...
Now it's time to publish! The only problem is that I can't seem to figure out how to change the schema name to something other than dbo.
That is, I don't want the output tables to be dbo.XXXX, I want them to be my_schema.XXXX instead.
Also, note that the database is on SQL Server 2005.
Does anyone have suggestions on how to achieve this?
Thanks!
Update: Sorry for not being specific. I don't want to change the schema for existing tables in my database. I want my LightSwitch application to use the new schema. I don't mind publishing it and then modifying the schema on the tables, if I can then somehow also modify the LightSwitch application to use the new schema. But ideally, there would be a way to tell LightSwitch to use a different schema when it publishes.
For those who don't know what LightSwitch is, it is a Microsoft .Net Rapid Application Development tool for SilverLight business applications, and is built into Visual Studio 2012. My application is written in VB.Net
You can't change the schema name for an intrinsic database (the database that is created with LightSwitch). Maybe you'll be able to in V3, but you can't currently do it in V1 or V2. To achieve this, you'll have to create the database in something like SSMS (SQL Server Management Studio, then attach to it as an external data source.
Seeing as you've already done all the creating in LightSwitch, you could publish it as is, then attach to it as I mentioned above. I hope you don't have screens created, because unless you want to manually edit all of the lsml, you won't be able to use the attached database in any already created screens.
Any time you need to do something "out of the ordinary" with LightSwitch's database, you need to create it outside of LightSwitch, then attach to it. Why? LightSwitch was originally created with the idea in mind that the users didn't need to know anything about SQL Server.
I'm noobie in the Lotus Domino 6.5, who i can registry new user without gui? (something script maybe?)
P.S. thanks and sorry my english.
You can use the NotesRegistration class in LotusScript or lotus.domino.Registration class in Java code.
See here for details -- but since that link goes to a more recent version (you are using a version of Domino that is almost ten years old, and has had no support from IBM for more than three years), you'll want to cross-check against the documentation that came with Domino Designer 6.5 in order to be sure about what's really available to you.
There is also a feature in the Domino Administrator client for providing a simple text file of user information in order to creates users in bulk. You can look that up in the help file that comes with Domino Administrator.
You might also examine the Notes C API or Notes C++ API. In the C API, there is a sample application called "userreg" which might help.
I have here a simple question for those expertise out there (but please explain well, I'm very new). I made a visual basic 2008 application that allows you to login from a database. I followed this video:
http://www.youtube.com/watch?v=p0dcPiLYrck
But the problem is that I have to keep debugging my app if I make a new user. Is their a way where I can upload my information through the internet and the application can pick it up from there? Also in my bin/release folder I get 2 sql files, how would I get rid of these but still be able to connect?
Thanks,
Kevin
I'm not sure if you're talking about a desktop application or a web application here. But to answer the question about making a new user, if you go by the video (which is desktop development) you will need to make a new form that will insert a username and password into the database. You don't always need to have the application running in debug mode. You can find the file folder that this application was created in and find the .exe that was created and execute the application from that.
I'm not sure what you'r talking about with the SQL files. If they have the extension of .mdb and mdf, then yes you will need those files because that is your physical database.
For more information about desktop development you can check out Microsoft's Beginer Devloper Learning Center. At that website you should be able to find all kinds of tutorials, walk throughs and examples of how to create desktop applications much like you saw in the youtube video.
Good luck and hope this helps.
I asked myself the same thing. Unfortunately, i don't believe that is easy to make a thing like this, especially for a newbie like me XD But maybe you can ask directly to the autor of the video, he of course know very well the databases of Visualbasic. Bye!
I am generating a reports using SQL Reporting services 2005. I need to protect the protect the reports(pdf and excel) with the password while the user is exporting the report to to excel or pdf.
Is there any way to protect the report.
The short answer is that you can't do this from the provided PDF rendering extension from SSRS 2005 (either from the web UI or programmatically from the SSRS web services). You can, however, create your own rendering extension that could provide this functionality. Here are some links that might help get you started:
Introducing Rendering Extensions
Microsoft SQL Server 2005: Reporting Services
You could take a COTS library, some open-source code, or your own custom code that can create password-protected PDF files, then wrap that into a custom rendering extension for SSRS 2005. In my opinion, however, this would be a relatively difficult task. A quick Google search didn't give me any obvious rendering extensions for sale that might provide the functionality you're looking for.