I have a report that I need to run multiple times and save as PDFs. I am currently generating the report as a PDF programatically but want to save the reports without the user having to choose the save option manually each time.
The code I use to render a single report as a PDF is:
Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing Dim streamids As String() = Nothing Dim mimeType As String = Nothing
[Code]....
I was figuring I could run it in a loop and save the PDF each time.
I have two seperate databases, one is production the other is test. Before LINQ, I could simply change the connection string to swtich db's. However, the string is read only, and I have no way to change the string.
How can I change the Connection String programmatically?
Edited for Clarity
Im using my.settings to store all of this inforomation
My requirement is to create dynamic text boxes during run time.it shld b like this: when i click a button a text box shld b created and upon entering a value it shld be saved in access database.
I'm working on a web portal for customers that will connect to Microsoft Dynamics. I don't want to make Dynamics CRM directly a internet facing deployment (IFD), so I'd like to use a separate database that the web interface interacts with and then use web services to move the data between the web portal database and Dynamics CRM. I'm just looking for thoughts on whether this is the best way to proceed and whether there are any good code examples, etc. that I can look at for implementing this? I saw Microsoft has a Customer Portal but it looks like it requires (at a cursory glance) an IFD deployment - which I don't want.
My main question is what fields are required for creating a PO using the web services. I keep getting an exception, so I feel like im leaving some info out. [code]
I am want to apply gradient color on textbox background in active report. For this I use graphics and use following code:
Dim a As New System.Drawing.Drawing2D.LinearGradientBrush(New RectangleF(0, 0, Me.Width, Me.Height), color1, color2, mode) Dim g As Graphics = Me.CreateGraphics g.FillRectangle(a, New RectangleF(0, 0, Me.Width, Me.Height)) g.Dispose()
It works well in forms but in report not able to get object of Graphics by Me.CreateGraphics.
I am trying to create a purchase order in Dynamics GP 2010 using the webservices. I get the following error VendorItemNumber not setup for ItemKey First off, I am not sure what that error actually means. Second off, I am not sure why I am getting it. My code is below.
Public Sub PO() Dim context As Context Dim purchaseOrderKey As PurchaseTransactionKey Dim vendorKey As VendorKey
i build my project and i made a copy of the windowsapplication1.exe and tried to open itwith txt editor.. i tried to search for "chris" (computer username) and i see that:[URL]
Our CRM 2011 database contains approx. 20000 contacts, and I need to loop through all of them using the SDK. Currently I'm finding the following linq query takes a very long time to execute:
I've tried applying several suggestions found on the web, but still experiencing cached results when querying CRM 2011 with linq. My web.config reads as follows, which is supposed to disable result caching:[code]I can live with that, but it would be nicer, instead of recreating the context, to have a way of ensuring no caching either in code or in web.config.
So I have a Powerpoint presentation. It contains numerous images on it, referred to by image X. (So it's the same image but on multiple pages) These same images on different pages/slides have different width/height attributes associated to them. So even though they're the same image, they may not be the same size.
So there exists a scenario where an image exists on a lot of the slides. I want the ability to replace all of them at the same time (quickly) without having to go through each slide and separately replacing X, one at a time with the new image.
Is this possible? (yes/no)How would this be accomplished? (abstract - high level explanation is only required)
Anyone using Crystal reports 2011 with VB.Net 2008 Pro? my work is willing to buy this but I just want to make sure it will work, the dynamic as opposed to static query values is what interests me about it.
Alright, so I'm still working on the slot machine. I have three timers all independently going for my three "wheels" of the slot machine.
My issue, is that I'm trying to make a Stop button to stop each timer one at a time, and I'm not understanding why this code isn't working. The logic completely makes sense, and the first "wheel" stops when I click the button, however, it doesnt appear to stop the other two timers.
I have Customer search screen and Customer Detail Screen, On Search set up a ShowLink on Name ,so when ever a user click on Name the Detail Screen Opens with that Customer data.
Whenever i change something into Detail Screen and press save, it Updates the customer. Its Fine.
But i want provide a functionlity of AddNew Record for that customer, So i have put a Button "AddNew" on ScreenCommandBar that clears all the fields in the Detail Screen. But it still Updates the Customer..
How can i code for add new record in Detail Screen?
I have been struggling with this problem for several hours now and can't find the reason for the error message...I am reading a datetime string from a txt file, it returns this:"01/31/2011 6:13 AM" Now, I want to convert this string to datetime format. I don�t want to change the structure of the date... just want to convert in order to do some minutes and seconds calculations.I have tried all kind of options:
Timespan Datediff Parse ParseExact with format.... culture... globalization
I've got a 2 part question: First question: I know that there is a query limit of 5,000 records when querying records, for performance reasons, but is there a limit when doing an aggregate query? If so, what is it? I need only to query the number of records and for one entity I can get a result of 39,000+ records, but for another entity I see an error message like:
I am coding on Windows 8, with the Visual Studio 2011 developer version. I wanted to know how to change something when a "form" is loaded. Form is in quotes because the actual page isn't a form. It's in the shape of a tablet, which you've probably guessed by now that I'm coding a tablet app.I just wanted to know how to change something when the actual app loads. I tried the "Loaded" sub, but that was confusing. It DID change a text from a textbox (I just tested it out as "textbox1.text = "test") and it worked. But when I try to make buttons visible false, nothing happens.I'm not sure if this is the right code (and I doubt it is, because it doesn't hide it on buttons either), but I typed in, let's say...
btn0.Visibility = False nd this is the sub it's in... Private Sub pgeMathAssist_Loaded(sender As Object, e As RoutedEventArgs) Handles
Everything was working just fine...then one time running the debugger and I'm given a 401.2 error from IIS Express 7.5. I created a new project and tested - worked fine. I ensured the web.config and other project settings where identical - still getting the error in the original project!
I have one PC whereby the OS has been installed on E: and it has no C: drive. Onto this I have installed my .Net 4.0 WPF Application which runs fine.
However, when I try to access a crystal report it gives the exception below. This user is able to access the report from its network location in windows explorer so I assume the act of asking Crystal to copy it locally is causing a problem?
Therefore, can anyone advise where the local copy will be created and/or how I can control this.
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Month_index, days, yearp As Integer Month_index = DateTimePicker1.Value.Month
[code]....
i can get the Clc month and day perfectly for year 2011, but when i goes to year 2011 it just appears as 0.my dates in Months.txt is saved as so
I have a simple application that use thread pool to read a file and input the data into a listbox. I want to be able to stop threadpool from running after clicking a stop button. How do I stop threadpool? Here is the code for my application below:
Imports System.Threading Public Class Form1 Private Delegate Sub StringDelegate(ByVal text As String)
I created a form and have the variable inputs for 4 motor run statements. Then with a start button the script starts and it is surrounded by a for next statement to loop 10 times. It works fine but if i need to stop the execution of the script with a stop button. I put the stop in a new section but of course does not work to do a motor stop. It just causes the exe to not respond till the loop is complete. Just need to be able to stop the Run1_Click button section.
Edit:I do not mind if it finishes the 4 motor run commands and then stops execution of the loop. So need to figure out a way to trigger a stop from a button on the form to stop the cycle. For the future the loop will be a variable integer input so 10 will not be the standard.
Edit::Does a ' Do ' statement sound like the thing to use? If so how and where would I place that? Have a Stop button on the form and it would stop after the 4th motor run command.
#End Region Declare Function InitStp Lib "stp.dll" () As Integer Declare Function RunMotor1 Lib "stp.dll" (ByVal steps As Integer, ByVal interval As Integer, ByVal direction As Integer, ByVal outputs As Integer) As Boolean
I have small lightswitch application having CreateNewUser Screen.Screen fields comes from Datatable added in DataSource, I have made all Validattion of fields at DataSource side.However i have added one Custom Control in the screen named : Re-TypePassword.Whenever user click on save button I want to match the Password and Re-TypePassword and want to prompt user a validation message if Password and Re-TypePassword are different.how can i display that validation massage ? ( I mean i want to add validation message to Summary of messages that appears at the top of screen)