bettersoft Posted May 24, 2011 Posted May 24, 2011 hello I use delphi7 made a printed ocx, use is MachRep print components. In del2010 in unigui registered in use, I'm in the machine operation can be invoked ocx print, can display the print preview interface, but in another client computers can't call out ocx print preview. And in clients' calls, has been waiting for the state. I put this ocx file copy to the client, use regsvr32.exe Registered, also can't use.exe print preview. function TUniMainModule.webprint(sfilename:widestring):integer; var olePrint:TWebPrintActiveFormX; begin sfilename:=UniServerModule.StartPath+'Report\222.rmf'; olePrint :=TWebPrintActiveFormX.Create(self); olePrint.webPrint(sfilename); end; Quote
Administrators Farshad Mohajeri Posted May 24, 2011 Administrators Posted May 24, 2011 hello I use delphi7 made a printed ocx, use is MachRep print components. In del2010 in unigui registered in use, I'm in the machine operation can be invoked ocx print, can display the print preview interface, but in another client computers can't call out ocx print preview. And in clients' calls, has been waiting for the state. I put this ocx file copy to the client, use regsvr32.exe Registered, also can't use.exe print preview. function TUniMainModule.webprint(sfilename:widestring):integer; var olePrint:TWebPrintActiveFormX; begin sfilename:=UniServerModule.StartPath+'Report\222.rmf'; olePrint :=TWebPrintActiveFormX.Create(self); olePrint.webPrint(sfilename); end; Above code runs on server and there is no way for it to open a dialog in a remote browser. Quote
bettersoft Posted May 25, 2011 Author Posted May 25, 2011 In the server is ok, why not in the client? Do you have any good way, the client can print preview it? How do I use OCX in the client print preview miles? This is very important, if use directly export excel, PDF, but also in the way each client installed excel, PDF, etc, and this do software, not professional printing, also don't friendly. thank you :rolleyes: Quote
Administrators Farshad Mohajeri Posted May 25, 2011 Administrators Posted May 25, 2011 In the server is ok, why not in the client? Do you have any good way, the client can print preview it? How do I use OCX in the client print preview miles? This is very important, if use directly export excel, PDF, but also in the way each client installed excel, PDF, etc, and this do software, not professional printing, also don't friendly. thank you :rolleyes: For obvious reasons Delphi code can't run inside a browser! You need to embed and OCX Object in HTML code but this method only works in IE. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.