This might be a really easy question for the guru's in stackover flow but i am not sure how to approach it.
Migrating from Desktop Application to Web Applicaiton
Used C# for Desktop Application
Used Asp.net for Web Application
first i created the desktop application but due to the time constraint on installing it on several machines, i came up with the proposal to create a web app
Issue
there are several reports that i dont want to recreate, they are just too complicated and i had already created these reports for the Desktop application i want to basically copy that report and paste it into the web application and link that in in the reportviewer and just change the datasource which would save me the trouble of recreating. i tried creating one of the report manual but the layout got messed up on the browser.
Plz help, thanks in advance
WinForms.ReportViewer can preview your rdlc using DisplayMode.PrintLayout but this is not possible with WebForms.ReportViewer where you basically always work with DisplayMode.Normal.
If exporting your web rdlc to PDF solves the layout problem, try display your report directly in this format.
Related
I am trying to use Google.Apis.Analytics.v3 for the 1st time, programmatically. We are building dashboard pages to show statistics, within their organisation-until now I have been reporting on information from internal databases.
Now we want to retrieve data from our Google analytics account.
My main tool for development is visual studio and C#. Some of the webpages have been created just using text editors, by a colleague, but I'm happier doing it in visual studio. We are sharing this development with organisations who do not use visual studio. So when I finish work on my webpages, we make 2 small changes to my files and we can be used without needing visual studio.
I have experience also in JavaScript and some jscript. I did find the Google API nuget package for studio and have installed it (not had time to look at it yet).
Some options Google have on their help site involves languages such as Java that we don't have any experience of in the format they appeared to be using it.
Given the above, can someone advise or recommend the best approach I should take for retrieving Google analytics data into our webpages (I do not want users to have to login-it should just seamlessly retrieve the data and display it).
Thanks
You could make an MVC project, where you can take the data and display it in a View. Here you can see some example with GoogleApi and MVC project in C#.
I have an RDLC-report which contains a lot of small images (hundreds).
When I'm opening it using SSRS-portal it groups all images into one sprite, loads it in one call and opens fast.
But if I embed it into my asp.net mvc application via iframe using ReportViewer control from Microsoft.ReportingServices.ReportViewerControl.WebForms package, it simply loads each image separately (making hundreds of calls) and opens very slow.
I'm using the last version of the ReportViewer control now - 14.0.0.0. But also I've tried older versions without success.
Except this there is no more difference working with this report via SSRS-portal or via my own portal.
Does anybody know how to force it use sprites instead of separate images when you embed it into your own portal?
After some research I've found that it seems to be a known issue.
Such optimization of images presents in native mode (e.g. when you're using SSRS-portal) and doesn't present in integrated mode (e.g. when you embed report into your portal).
Here are the links where I've found the most important information:
What’s Up With the Slow SSRS R2 Rendering in SharePoint 2010 Integrated Mode?
The switch back to SSRS Native mode for Performance Reasons
SSRS 2008 R2 Add-in Performance Issues
I have created a program in Visual Studio 2013 using Visual Basic. This program allows the user to enter in certain criteria via controls then they click on a button and the program searches an excel document with several spreadsheets and returns the appropriate information to the user. The program runs perfectly as it was intended (thought a little slower than I would like). I have now been charged with making this program a web application.
I have done enough research and have settled on using ASP.NET and visual basic (If there are other suggestions I would welcome them). I have re-created the GUI in ASP.NET as best as I could and I'm now left with the extensive coding part. My first question is by turning this program into a web app can I still use Excel? How would that work on the server side instead of everything being on the client side. Is there a completely different route I should be thinking about to accomplish what I need.
My original program revolved around opening an Excel File, searching the various spreadsheets and returning data that fit the user's chosen criteria, how should I go about this with a web app written in ASP.NET and Visual Basic.
Thank you for any assistance anyone can provide.
We develop an ASP.NET application that displays tabular data to users. The data comes from stored procedure in a database. We developed a custom control to display this data in HTML table. However lately, we discovered the beauty of using Report Server and migrated all of our reports there.
The situation is that we offer this application to both users with Report Server and without Report Server installed. We would like to offer old-reports style to users without RS and embed RS controls to those who have RS installed --- but both solutions integrated into one application.
How should we handle assembly references? Is namespace Microsoft.Reporting.WebForms always available? If not can we use .NET library file as part of our application and distribute it with it? Are there any problems that might arise?
The fact that RS is or is not installed (and its address) would be handled via configuration file.
Could you please help me? Thanks all in advance.
You can deploy/distribute the appropriate ReportViewer DLL's with your own application/code, for websites I don't think you specifically need to install the ReportViewer on the server. The web.config will need to be adjusted, there's this MSDN article which describes all the different aspects.
As far as I can tell from your question, you'll allow users of your code to switch between a control that does or doesn't use a ReportViewer, based on an AppSetting (or something akin). This should be perfectly possible with the above setup.
I am trying to put together a winform app that also has a web interface that can interact with events generated from within the winform portion of the app. I am successfully running the cassinidev server from within the app and asp.net pages are being processed but I am still running into a few obstacles and I am not sure if they are even possible???
I am unable to use code behind pages. I have added the appropriate
attributes to the page directive but I still cannot access controls
from the aspx page.
I am unable to access classes from the web portion of the app. See
screenshot...
Maybe what I am trying to accomplish is not even possible but if anyone can help to point me in the right direction I would be most grateful!
I'm pretty sure you can't do that since the only thing you have available is the "website path" option.
You do however have the source and if you find some way of sharing data (maybe using the ApplicationPool) you could probably do that...but i'm guessing you'd still need to cast that data on startup to a static variable in your website.
Seems like too much work 2 me.
I'd suggest selfhosting WebApi as well and then just using that as the data layer of your website.
Both can be hosted in winforms and webapi CAN share static data directly from your code :)