Click here to Skip to main content
15,895,142 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Creating one file from all the files created using 'Publish' Pin
shabya5-Mar-09 19:44
shabya5-Mar-09 19:44 
GeneralRe: Creating one file from all the files created using 'Publish' Pin
Eddy Vluggen6-Mar-09 1:45
professionalEddy Vluggen6-Mar-09 1:45 
GeneralRe: Creating one file from all the files created using 'Publish' Pin
Curtis Schlak.6-Mar-09 1:50
Curtis Schlak.6-Mar-09 1:50 
GeneralRe: Creating one file from all the files created using 'Publish' Pin
Eddy Vluggen6-Mar-09 2:33
professionalEddy Vluggen6-Mar-09 2:33 
GeneralRe: Creating one file from all the files created using 'Publish' Pin
Curtis Schlak.6-Mar-09 2:37
Curtis Schlak.6-Mar-09 2:37 
GeneralRe: Creating one file from all the files created using 'Publish' Pin
Eddy Vluggen6-Mar-09 3:06
professionalEddy Vluggen6-Mar-09 3:06 
AnswerRe: Creating one file from all the files created using 'Publish' Pin
Curtis Schlak.6-Mar-09 1:48
Curtis Schlak.6-Mar-09 1:48 
QuestionAxWebBrowser - Customizing Print Content Pin
CoolCoder_New4-Mar-09 19:11
CoolCoder_New4-Mar-09 19:11 
Hi ,

i am using AxWebBrowser to launch web page. I dont have control over the web page.I am requesting the server with the url and embeding the page in AxWebBrowser.

my assignment is I have to print the web page from my application. please note i dont have control over the web page.
i googled and find out the following ways of printing the web page:

Case 1:

object o = "";
//// constants useful when printing
SHDocVw.OLECMDID Print = SHDocVw.OLECMDID.OLECMDID_PRINT ;
//// use this value to print with prompting
SHDocVw.OLECMDEXECOPT PromptUser =
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER;
axWebBrowser1.ExecWB(Print, DontPromptUser, ref o, ref o);

In case 1,I could call the print dialog and print the web page content. But I cudnt add extra text to the web page. i couldnt find any solution to add extra text to the web page through ExecWB method.

Case 2:

IHTMLDocument2 HTMLDocument1 = (IHTMLDocument2)axWebBrowser.Document;
object pagedoc = HTMLDocument1.body.document;
string acttext = ((mshtml.HTMLDocumentClass)pagedoc).activeElement.innerHTML;
string headertext = "Sample text to the web page";
string mytext = headertext + acttext;
((mshtml.HTMLDocumentClass)pagedoc).activeElement.innerHTML = mytext;
((mshtml.HTMLDocumentClass)pagedoc).execCommand("Print", true, 0);

In case 2, I am able to prompt the print dialog using ExecCommand method and the print the web page content.
To add extra text the web page content , i took the innerHTML and added sample text and tried printing. My problem with this case is , when i tried to use html tags like "center,h4" , print dialog itslef is not promted. in general print is not working.

Can someone plz help me to resolve this problem. Do i need to give any more information. if so plz tell me.thank you
QuestionPing Using UDP Pin
tiger08064-Mar-09 4:58
tiger08064-Mar-09 4:58 
QuestionCalculating the cheksum of code in memory Pin
push19884-Mar-09 3:03
push19884-Mar-09 3:03 
AnswerRe: Calculating the cheksum of code in memory Pin
Mark Churchill4-Mar-09 15:11
Mark Churchill4-Mar-09 15:11 
QuestionHow can I define startup parameters for a windows service while installing it? Pin
Member 25855274-Mar-09 1:52
Member 25855274-Mar-09 1:52 
QuestionProblem with MSI Installer Pin
Subrahmanya Narayana3-Mar-09 20:42
Subrahmanya Narayana3-Mar-09 20:42 
AnswerRe: Problem with MSI Installer Pin
Subrahmanya Narayana3-Mar-09 21:44
Subrahmanya Narayana3-Mar-09 21:44 
Questionsplitting image Pin
rohan40403-Mar-09 19:46
rohan40403-Mar-09 19:46 
AnswerRe: splitting image Pin
Thomas Stockwell5-Mar-09 7:48
professionalThomas Stockwell5-Mar-09 7:48 
Questioncoverting image Pin
rohan40403-Mar-09 19:45
rohan40403-Mar-09 19:45 
AnswerRe: coverting image - Repost Pin
ABitSmart3-Mar-09 20:45
ABitSmart3-Mar-09 20:45 
AnswerRe: coverting image Pin
annathor5-Mar-09 3:32
annathor5-Mar-09 3:32 
QuestionProblem in reading a xml string into data set Pin
Renukapadhamanaban3-Mar-09 17:21
Renukapadhamanaban3-Mar-09 17:21 
AnswerRe: Problem in reading a xml string into data set Pin
Cybernate6-Mar-09 3:12
Cybernate6-Mar-09 3:12 
QuestionDistribution Restrictions on CodeDom? Pin
Bill Bielke3-Mar-09 12:24
Bill Bielke3-Mar-09 12:24 
QuestionVB.Net MDI Child form loading issue... Pin
Tej Aj3-Mar-09 6:51
Tej Aj3-Mar-09 6:51 
QuestionEntity Framework with Services : several Reference.cs for the same database Pin
WolveFred23-Mar-09 1:31
WolveFred23-Mar-09 1:31 
QuestionScheduling tasks Pin
1sabine83-Mar-09 0:07
1sabine83-Mar-09 0:07 

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.