Showing posts with label print. Show all posts
Showing posts with label print. Show all posts

Thursday, March 29, 2012

Office Web Component Print preview

Hi all
Was working on Office web component 3.0 which fits in to my projects.
but came across one problem

in excel when we give the print preview it displays the whole format
of the sheet.
even in page preview im able to see only those part which is displayed
on the form.

Is there any way to display the sheet data in OWC in the print preview
of the page.??

Any idea would be appreated.There is no publicly released OWC version 3.

Quote:

Originally Posted by

Is there any way to display the sheet data in OWC in the print preview
of the page.??


Not easily. If you have the energy to, you can download the print behavior
files for the owc 10 version and tweak the code.

--
Regards,
Alvin Bruney
----------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on www.lulu.com/owc
$24.99

"jack" <gautams.mail@.gmail.comwrote in message
news:1193056230.374668.83990@.i13g2000prf.googlegro ups.com...

Quote:

Originally Posted by

Hi all
Was working on Office web component 3.0 which fits in to my projects.
but came across one problem
>
in excel when we give the print preview it displays the whole format
of the sheet.
even in page preview im able to see only those part which is displayed
on the form.
>
Is there any way to display the sheet data in OWC in the print preview
of the page.??
>
>
Any idea would be appreated.
>

Friday, March 16, 2012

On Button click Print Form

Hi all,

In my asp.net page there is one form which is fill by user after filling form he will take the print out of that form

now how i canprint that form on button click and i want thatuser can not save and copy that formonly he can take print out of that form

after filling that from i am showing its all information in next page . how i can do underline task.

help me to perform this task

regard

happy Diwali

Perhaps you only allow the user print the webpage with print button and copy or save the content is not permitted .

In fact although you can disable the select, copy or save action with javascript, user can do some minor modification to html code to enable all the actions . Sad


hi yyy8347

how i can print the form on button click


Easiest way is to call javascript method:

<input type="button" value="Print this page"onClick="window.print()">


how can you make the print button invisible...my problem is that the print button is included during printing

There are event that happen before and after the print is called on the page.. You can write code to hide/show the print button during those events..\

http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onbeforeprint.asp

http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onafterprint.asp