|
Hello,
I'm trying to create an installation package for my rather simple VB.net application and the users don't want to use it because they don't want to have to install the ".net" framework that it asks them to upon installation. I thought there was a way to include the libraries in the installation package (or the program itself) so they didn't have to do this?
How do I build it so they don't have to install anything from MS?
thanks,
JennyP
|
|
|
|
|
It appears that you can't. The .NET Framework files in the deployment solution don't actually end up in the final set up file, they just exist there to stop the setup project build from complaining about missing dependencies.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
If that's true, it's VERY lame... I should have used Borland.
JennyP
|
|
|
|
|
You are allowed to distrubute the redistributable on its own. And there are likely ways around it (creating a small installer bootstrap that calls one install after another is one that springs to ming). And I don't think Borland will be any different as, from my understanding, its a licencing issue rather than a technical one.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
bitpusher wrote:
If that's true, it's VERY lame... I should have used Borland.
For the second time in a week, I simply cannot understand how somebody can get to the END of writing an app and only THEN discover that their client machines need the Framework.
|
|
|
|
|
J4amieC wrote:
For the second time in a week, I simply cannot understand how somebody can get to the END of writing an app and only THEN discover that their client machines need the Framework.
Hello. In retrospect, I should never ASSuME anything, but I believed that there would be no real difference between 6.0 and .net---in 6.0 I was able to statically link the few libraries I used. In .net, it's not an option.
JennyP
|
|
|
|
|
VB6 had a runtime too, the only differences were:
1) It wasnt the 23Mb Monstrosity that is the .NET Framework
2) It was pre-installed on most users's machine as VB had been around quite some time.
Within a few years the same may be true for the .NET framework as 2) above, but for now you need the redist of the .NET framework.
|
|
|
|
|
there is a bootstrapper right here:
http://msdn.microsoft.com/vstudio/downloads/tools/bootstrapper/
|
|
|
|
|
There are projects out there that will install just the components of the .NET Framework that are needed to run your app. There is a HUGE downside to doing this though. If your clients eventually get around to installing the .NET Framework or expect that a .NET Framework Service Pack will fix a problem with your app, they are SOL because the fix won't install. The reason? The .NET Framework is not installed and the Service Pack will not install just the files it needs to fix your partial installation. Software has already hit the market that requires the Framework, so they'll have to install the thing eventually. Why not start with your app?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
There are projects out there that will install just the components of the .NET Framework that are needed to run your app.
Hello,
I'd very much like to use this if you know where they are? My distribution is VERY limited (less than 50, I'd say), and the lifetime is less than a year.
thanks,
JennyP
|
|
|
|
|
|
How do I create a sub prodecure and call that procedure from the navigation menu items.
|
|
|
|
|
Like this?
Public Sub Test(ByVal whereto As String)
If whereto = "gotohere" Then
GoTo gottohere
End If
MsgBox("Im here")
gottohere:
MsgBox("Im here too")
End Sub
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
Test("gotohere")
End Sub
|
|
|
|
|
or this?
SUBROUTINE linka(d, n, f)
INTEGER d, n, f, table, document
C In subroutine linka, via primary entry point
DO 10 i = 1, f, n
.
.
.
10 CONTINUE
RETURN
ENTRY search(table, f)
C In subroutine linka, via entry point search
DO 20 i = 1, f
.
.
.
20 CONTINUE
RETURN
ENTRY punctuation(document)
C In subroutine linka, via entry point punctuation
DO 30 i = 1, 5
.
.
.
30 CONTINUE
END
Sorry, the Punchcards are in cold storage but here is the Code Map.
PROGRAM main
|<---- CALL entry1(val)
| CALL entry2(val) ------>|
| |
| END |
| |
| SUBROUTINE sub |
| |
-----> ENTRY entry1(a) |
a = a + 5.0 |
RETURN ! Return to main |
|
ENTRY entry2(a) <--------
a = a + 10.0
END ! Return to main
|
|
|
|
|
oop's here it is:
PROGRAM main
|<---- CALL entry1(val)
| CALL entry2(val) ------>|
| |
| END |
| |
| SUBROUTINE sub |
| |
-----> ENTRY entry1(a) |
a = a + 5.0 |
RETURN ! Return to main |
|
ENTRY entry2(a) <--------
a = a + 10.0
END ! Return to main
|
|
|
|
|
Hello,
First off, i would like to know is it possible to make VS.NET 2003 by default opens Projects with UNICODE .... kinda Preference options within some applications ... i was looking for ... that option but i didn't find
Second Off .... i would like to know which Unicode i can use for i.e. Russian language or some Cyrilic unicode typing ... Serbian, Macedonian etc. I was trying almost all Cyrilic and Unicode format but noone was workable ...
Thanks in advance
|
|
|
|
|
I'm fairly sure you would have to have the Multilingual User Interface Pack's or the Russion version.
|
|
|
|
|
How can I connect two Computers by using the phone line
I want transfere a data during the phone connection between two computers.
Thanks
Waleed Eissa
|
|
|
|
|
http://www.symantec.com/pcanywhere/
or here is two written in Vb
http://www.a1vbcode.com/app.asp?ID=2887
http://www.pberndt.com/downloads.html
|
|
|
|
|
This is similar to an earlier post, but different enough I think for a new one.
I have tried a few things I've found online, but none have worked. I am loading a template for a CrystalReport, then filling it, then I want to export it as a PDF, or RDF, I don't really care right now, but PDF would be preferred.
Below is the best I can come up with, but the errors never cease. If anyone has any examples where they did anything like this successfully, that would be great.
Thank You!
Dim cr As New ReportDocument()
cr.Load("path to CrystalReport template .rpt")
Dim PKCalls As DataTable = DirectCast(Session("GetPKCallS"), DataTable)
PKCalls = New DataTable()
Dim sc As New PK.BusinessLogicLayer.Consumer()
Dim tDay As Integer
Dim tCall As Integer
Dim DD As String
Dim CallActivity As String
tDay = Integer.Parse(txtPast.Text)
tCall = Integer.Parse(txtCall.Text)
DD = Today.AddDays(-tDay)
CallActivity = Today.AddDays(-tCall)
PKCalls = sc.GetPKCallSheet(txtGender.Text, txtRace.Text, lblUpDOB.Text, lblLowDOB.Text, ddlSite.SelectedItem.Value, DD, CallActivity)
Session("GetPKCallS") = PKCalls
Dim ds As New DataSet()
ds.Tables.Add(Session("GetPKCallS"))
cr.SetDataSource(ds)
Dim exportOpts As New ExportOptions()
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile
exportOpts.DestinationOptions = New DiskFileDestinationOptions()
Dim diskOpts As New DiskFileDestinationOptions()
Dim N As String
N = "CallSheets" & Session("userOffice") & Now & ".PDF"
N = Replace(N, Chr(32), "")
N = Replace(N, ":", "")
N = Replace(N, "/", "")
diskOpts = CType(exportOpts.DestinationOptions, DiskFileDestinationOptions)
diskOpts.DiskFileName = "path to final destination" & N
cr.Export()
|
|
|
|
|
can you please post the error that you are receiving?
-jim
|
|
|
|
|
The error reads "Invalid report file path."
And is thrown by: CrystalReportDocument.SetDataSource(ds)
Other than that, I can load the template.rpt and send it as a PDF to it's location, I just can't populate the .rpt now.
Below is the updated code:
Dim PKCalls As DataTable = DirectCast(Session("GetPKCallS"), DataTable)
PKCalls = New DataTable()
Dim sc As New PK.BusinessLogicLayer.Consumer()
Dim tDay As Integer
Dim tCall As Integer
Dim DD As String
Dim CallActivity As String
tDay = Integer.Parse(txtPast.Text)
tCall = Integer.Parse(txtCall.Text)
DD = Today.AddDays(-tDay)
CallActivity = Today.AddDays(-tCall)
PKCalls = sc.GetPKCallSheet(txtGender.Text, txtRace.Text, lblUpDOB.Text, lblLowDOB.Text, ddlSite.SelectedItem.Value, DD, CallActivity)
Session("GetPKCallS") = PKCalls
Dim ds As New DataSet()
ds.Tables.Add(Session("GetPKCallS"))
Dim N As String
N = "CallSheets" & Session("userOffice") & Now & ".PDF"
N = Replace(N, Chr(32), "")
N = Replace(N, ":", "")
N = Replace(N, "/", "")
Dim CrystalReportDocument As ReportDocument
Dim CrystalExportOptions As ExportOptions
Dim CrystalDiskFileDestinationOptions As DiskFileDestinationOptions
Dim Filename As String
CrystalReportDocument = New ReportDocument()
CrystalReportDocument.SetDataSource(ds)
CrystalReportDocument.Load("path to .rpt")
Filename = "destination path" & N
CrystalDiskFileDestinationOptions = New DiskFileDestinationOptions()
CrystalDiskFileDestinationOptions.DiskFileName = Filename
CrystalExportOptions = CrystalReportDocument.ExportOptions
With CrystalExportOptions
.DestinationOptions = CrystalDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
CrystalReportDocument.Export()
Thank you for your help!
|
|
|
|
|
try loading the report template before you set the datasource of the reportdocument object. this way the report document object is able to validate the schema of the passed dataset against the templates data definition as the datasource is set. i would think that this would solve your problem.
the invalid report file path error is probably being thrown up because of some validation in the setdatasource procedure that's checking to ensure that you've loaded a template first.
hope this helps.
-jim
|
|
|
|
|
I put "CrystalReportDocument.SetDataSource(ds)" after the load statement.
This did stop the error, there are no errors now, however, the Crystal Report is not being filled.
I've checked to make sure that the data Table is getting data.
Am I setting the data Source from the data Table correctly?
Any ideas? I (obviously) haven't done this before.
Thank you for your continuing help!
|
|
|
|
|
no problem!
i would then check that your data definition is done correctly. i.e. what did you use to define your data structure to your report template?
i typically generate an .xsd file using: myDataset.WriteXML("outputfilename.xsd", xmlwritemode.writeschema)
then create the report template using this .xsd file.
how are you doing it?
-jim
|
|
|
|