Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
QuestionSQL Reporting Services - programmatic report execution + export to PDF via WS/asmx Pin
devvvy24-Jul-09 22:24
devvvy24-Jul-09 22:24 
QuestionObj file Pin
john563224-Jul-09 22:08
john563224-Jul-09 22:08 
AnswerRe: Obj file Pin
Mycroft Holmes24-Jul-09 23:12
professionalMycroft Holmes24-Jul-09 23:12 
AnswerRe: Obj file Pin
Joe Woodbury25-Jul-09 16:38
professionalJoe Woodbury25-Jul-09 16:38 
QuestionWhen i print a document, it always show a "SaveAs" dialog [modified] Pin
AdaEniac24-Jul-09 21:13
AdaEniac24-Jul-09 21:13 
AnswerRe: When i print a document, it always show a "SaveAs" dialog Pin
Moreno Airoldi24-Jul-09 23:55
Moreno Airoldi24-Jul-09 23:55 
GeneralRe: When i print a document, it always show a "SaveAs" dialog Pin
AdaEniac25-Jul-09 17:50
AdaEniac25-Jul-09 17:50 
AnswerRe: When i print a document, it always show a "SaveAs" dialog Pin
AdaEniac25-Jul-09 20:21
AdaEniac25-Jul-09 20:21 
Ok, I serched lots of information in internet, tyied lots of methods again and again... Now I do it!

Actually, it's very easy!
Because i used dummy printer, so when i printing a document, the PrintDocument.PrinterSettings.PrintFileName must been seted and PrintDocument.PrinterSettings.PrintToFile must been "true"!


As follows:
string lcFileName = @"D:\NewXps.xps";
_Document.DefaultPageSettings.PrinterSettings.PrintFileName = lcFileName;
_Document.DefaultPageSettings.PrinterSettings.PrintToFile = true;
_Document.PrinterSettings.PrintFileName = lcFileName; _Document.PrinterSettings.PrintToFile = true;
(_Document is PrintDocument)
QuestionCross Tab Data Pin
Isaac Gordon24-Jul-09 21:03
Isaac Gordon24-Jul-09 21:03 
AnswerRe: Cross Tab Data Pin
Baran M24-Jul-09 22:22
Baran M24-Jul-09 22:22 
AnswerRe: Cross Tab Data Pin
Mycroft Holmes24-Jul-09 23:08
professionalMycroft Holmes24-Jul-09 23:08 
Questioninsert time in oracle Pin
mjawadkhatri24-Jul-09 19:28
mjawadkhatri24-Jul-09 19:28 
AnswerRe: insert time in oracle Pin
K030624-Jul-09 19:41
K030624-Jul-09 19:41 
GeneralRe: insert time in oracle Pin
mjawadkhatri24-Jul-09 19:43
mjawadkhatri24-Jul-09 19:43 
GeneralRe: insert time in oracle Pin
Baran M24-Jul-09 22:15
Baran M24-Jul-09 22:15 
QuestionCloning a class without having reference [SOLVED] Pin
Xmen Real 24-Jul-09 15:20
professional Xmen Real 24-Jul-09 15:20 
QuestionMultiple data sources with the same name in different directorys? [modified] Pin
Kiotaya24-Jul-09 13:46
Kiotaya24-Jul-09 13:46 
AnswerRe: Multiple data sources with the same name in different directorys? Pin
Christian Graus24-Jul-09 14:13
protectorChristian Graus24-Jul-09 14:13 
GeneralRe: Multiple data sources with the same name in different directorys? Pin
Kiotaya24-Jul-09 15:37
Kiotaya24-Jul-09 15:37 
GeneralRe: Multiple data sources with the same name in different directorys? Pin
Mycroft Holmes24-Jul-09 16:04
professionalMycroft Holmes24-Jul-09 16:04 
GeneralRe: Multiple data sources with the same name in different directorys? Pin
Kiotaya24-Jul-09 16:48
Kiotaya24-Jul-09 16:48 
GeneralRe: Multiple data sources with the same name in different directorys? Pin
Mycroft Holmes24-Jul-09 18:01
professionalMycroft Holmes24-Jul-09 18:01 
GeneralRe: Multiple data sources with the same name in different directorys? Pin
Kiotaya24-Jul-09 18:30
Kiotaya24-Jul-09 18:30 
GeneralRe: Multiple data sources with the same name in different directorys? Pin
PIEBALDconsult24-Jul-09 19:27
mvePIEBALDconsult24-Jul-09 19:27 
GeneralRe: Multiple data sources with the same name in different directorys? Pin
Kiotaya24-Jul-09 19:59
Kiotaya24-Jul-09 19:59 

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.