R
Robert J
Hi All,
I am developing an App in VB.Net that will be run in several Domains.
Using Wireless handheld devices running .Net Compact Framework
The application also has to print some Reports, and we use Crystal Reports,
which are not available for the CF.
So I turned to Web Services, and got over the localhost hurdle.
The Web Service will run on the Server at each site, which will have access
to Network Printers in the Domain.
Are there limitations on what you can do in a Web Service, I thought I could
pass a Report Filename and other Parameters to the Web Service and then
have it Print the Reports, but it seems to Fail on:
crReport.Load(strReportFile)
Would I have more luck using the CrystalReportVeiwer within the Web Service
?
So far I have a work around where the Web Service writes a file on the
Server
with all the Report Details and another Program Prints the Reports from the
file
details.
This leads to another Question becuase the address of the Web Service is
hard coded
in the application, is there a way of changing it at Runtime ?
eg. within the Namespace you have the constructor
Public Sub New()
MyBase.New
Me.Url = "http://myserver/HandheldPrint/ReportService.asmx"
End Sub
Can I change "myserver" here becuase there are also references to it in
ReportService.disco
Or would I have to add a Web Reference to every Server I am running the app
on and then
call the appropriate one.
Cheers
Robert
I am developing an App in VB.Net that will be run in several Domains.
Using Wireless handheld devices running .Net Compact Framework
The application also has to print some Reports, and we use Crystal Reports,
which are not available for the CF.
So I turned to Web Services, and got over the localhost hurdle.
The Web Service will run on the Server at each site, which will have access
to Network Printers in the Domain.
Are there limitations on what you can do in a Web Service, I thought I could
pass a Report Filename and other Parameters to the Web Service and then
have it Print the Reports, but it seems to Fail on:
crReport.Load(strReportFile)
Would I have more luck using the CrystalReportVeiwer within the Web Service
?
So far I have a work around where the Web Service writes a file on the
Server
with all the Report Details and another Program Prints the Reports from the
file
details.
This leads to another Question becuase the address of the Web Service is
hard coded
in the application, is there a way of changing it at Runtime ?
eg. within the Namespace you have the constructor
Public Sub New()
MyBase.New
Me.Url = "http://myserver/HandheldPrint/ReportService.asmx"
End Sub
Can I change "myserver" here becuase there are also references to it in
ReportService.disco
Or would I have to add a Web Reference to every Server I am running the app
on and then
call the appropriate one.
Cheers
Robert