Click here to Skip to main content
15,920,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change order of tab pages in tab control Pin
Werdna15-Jul-05 6:43
Werdna15-Jul-05 6:43 
GeneralDisplay whole row from dataset Pin
zaboboa15-Jul-05 2:28
zaboboa15-Jul-05 2:28 
GeneralRe: Display whole row from dataset Pin
rudy.net15-Jul-05 18:20
rudy.net15-Jul-05 18:20 
GeneralDynamically creating Datagrid in Datagrid Pin
bkameshreddy14-Jul-05 23:55
bkameshreddy14-Jul-05 23:55 
GeneralRe: Dynamically creating Datagrid in Datagrid Pin
rudy.net15-Jul-05 18:34
rudy.net15-Jul-05 18:34 
GeneralStoping thread Pin
ksanju100014-Jul-05 23:11
ksanju100014-Jul-05 23:11 
GeneralRe: Stoping thread Pin
Vasudevan Deepak Kumar15-Jul-05 3:30
Vasudevan Deepak Kumar15-Jul-05 3:30 
GeneralCHALLENGE: automatic printing to file! Pin
asbiot14-Jul-05 22:43
asbiot14-Jul-05 22:43 
Hi,

I am trying to print a webpage to a postscript file. Ultimately the result is supposed to be a script/program that displays a web page and creates a pdf-document out of it. I decided to use the print function of the web browser because the page contains ACTIVE-X containers that display graphical charts and I don't know any other way to get the ACTIVE-X objects displayed on the page without running them inside a browser window before printing them.

I am displaying the web page inside an axWebBrowser window and then using the
"...ExecWB( SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER ..."
command to print to a normal "Generic PostScript Printer" to generate the PS file. All of that works fine, thanks to some of the helpfull posts on the CODE PROJECT page.
However, all of this is supposed to be an automatic script/programm that runs in the background and whenever I call the "print the web page" command, the printer driver displays a dialog window and asks for the file name of the PS-file that is supposed to be generated. I don't mean the "printer settings" dialog window, I was able to suppress that.

The question is: Is there a way to include the file name of the output file in the printer command OR is there any other way to automate the output of an XML-based web page containing ACTIVE-X objects as a PDF/PostScript?

Here are some ideas that I had. I have tried to find something on google about it, but wasn't successful. Any ideas?
(I am working with Visual C# .Net)

- find a function/command in C# that includes the name of the output file.
- change the printui.dll to somehow contain a default output name for the PS-file.
- find a printer driver that allows to define a default name for the output file.
- find a way to parse the XML and the active-X alements seperately, but HOW! If I don't display the active-X, it won't show the graphs, right?

cheers, Tobias
Generalresizing objects Pin
Sasuko14-Jul-05 22:35
Sasuko14-Jul-05 22:35 
GeneralRe: resizing objects Pin
Darryl Borden15-Jul-05 2:45
Darryl Borden15-Jul-05 2:45 
General.EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Vasudevan Deepak Kumar14-Jul-05 20:08
Vasudevan Deepak Kumar14-Jul-05 20:08 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Expert Coming14-Jul-05 20:13
Expert Coming14-Jul-05 20:13 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Colin Angus Mackay14-Jul-05 21:09
Colin Angus Mackay14-Jul-05 21:09 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Colin Angus Mackay14-Jul-05 21:11
Colin Angus Mackay14-Jul-05 21:11 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Expert Coming14-Jul-05 21:13
Expert Coming14-Jul-05 21:13 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Dave Kreskowiak15-Jul-05 1:50
mveDave Kreskowiak15-Jul-05 1:50 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
DavidNohejl15-Jul-05 1:57
DavidNohejl15-Jul-05 1:57 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Vasudevan Deepak Kumar15-Jul-05 0:53
Vasudevan Deepak Kumar15-Jul-05 0:53 
GeneralDo not allow to delete folder using Set up and Deployment for desktop application Pin
ksanju100014-Jul-05 19:53
ksanju100014-Jul-05 19:53 
GeneralPlaying Sound Clips Pin
Charlie Tame14-Jul-05 19:08
Charlie Tame14-Jul-05 19:08 
GeneralRe: Playing Sound Clips Pin
Expert Coming14-Jul-05 20:18
Expert Coming14-Jul-05 20:18 
Generalsocket problem Pin
snouto14-Jul-05 19:03
snouto14-Jul-05 19:03 
GeneralRe: socket problem Pin
felopater15-Jul-05 1:45
felopater15-Jul-05 1:45 
GeneralRe: socket problem Pin
Zishan Haider15-Jul-05 4:11
Zishan Haider15-Jul-05 4:11 
GeneralRe: socket problem Pin
leppie15-Jul-05 5:55
leppie15-Jul-05 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.