Is it possible to know which page I am printing in MS Word? Or which page has been printed recently? I am trying to find out using vsto. There are methods like Application.PrintOut()
and property like Application.PrintPreview but nothing to find which page I am printing.
Related
I am trying to figure out a way that when I print something, that is identical, it allows me to serialize each page that I print. THe good news is the app that I am using (a custom app) asks me on a previous page how many I need to print and then renders them into a pdf, so i need to insert code to serialize each render of the non-unique page. Any suggestions?
I was wondering how to determine which was is the URL of the main frame obtained by typing a ticker symbol on this page:
https://marketviewer.equiduct.com/
For instance, if you type a ticker symbol like 'mlm' on this page, you are brought to a page where there are a number of frames. I am interested in getting the URL of the bigger one, i.e. the one the Bid and the Offer. I am using the chrome browser, but any other browser would suffice.
Thanks in advance.
Arturo.
Sorry, the page is created with flash, so you can't get any information from something like this.
It could be useful:
https://www.propublica.org/nerds/item/reading-flash-data
Can I scrape flash?
i use below code..but it doesn't print whole form.Its only print half form.how to print whole form?
PrintForm1.PrintAction = PrintAction.PrintToPreview
PrintForm1.Print()
i also use below code but its not working
If PrintDialog1.ShowDialog = DialogResult.OK Then
PrintDocument1.Print()
As Suzy mentions, PrintForm will send the entire contents of your form to the printer, if that's what you want. It's a lot like taking a screen shot of your form and sending it to the printer. If you want something more discriminating, you'll need to use some sort of reporting software.
However, if you got PrintAction to work at all, you're not using VB 6.0, so this might not be your answer.
We had a Vaadin 7 UI page with multiple Layouts, Panels, and Chart (the Browser will come with ScrollBar as height is big). When we try to print using JavaScript in Vaadin code or using Ctrl+P of browser, it prints only One page in Firefox 32.0.3; prints multiple pages with only data for First Page in IE 8.
We tried with specifying undefined size for all components in UI page
(as mentioned in https://vaadin.com/forum#!/thread/3869543/7861633)
We also tried with some CSS changes for print (as mentioned in https://vaadin.com/forum/#!/thread/529738/539201)
Both above cases didnot solved our problem. As we can understand from documentation that Vaadin scrolling uses a DOM structure, it was unusual to know such a tool does not provide proper Print option.
To brief our objective, we are looking at Reporting option in Vaadin for some data analysis. We saw some options (using JasperReport etc.) mentioned in StackOverflow, however will not be able to implement them as we need to deploy this application to Google App Engine (GAE) which has unsupported functions such as FileOutputStream etc.
To conclude, these are our issues -
How to resolve multiple page print issue in Vaadin 7?
If we are not able to solve first issue, What is the best Reporting library (for PDF or PNG or HTML or Print) that is supported by both Vaadin 7 and GAE?
Any guidelines or suggestions to direct us would be appreciated.
Printing HTML pages is random at best.
Every browser has it's own rules for display and page breaks. We always use pdf for things to print.
iReport / Jasperreports is the thing we use most of the time
You can try this workaround:
private void setSizeUndefined2Print()
{
com.vaadin.ui.JavaScript.getCurrent().execute("document.body.style.overflow = \"auto\";" +
"document.body.style.height = \"auto\"");
UI.getCurrent().setSizeUndefined();
this.setSizeUndefined();
}
If for some cases you need to switch back to "defined" size, next method can be used:
private void setSizeFull2Print()
{
com.vaadin.ui.JavaScript.getCurrent().execute("document.body.style.overflow = \"\";" +
"document.body.style.height = \"\"");
UI.getCurrent().setSizeFull();
this.setSizeFull();
}
I have set up a rule to quite simply print out an email when received from a certain address (Amazon sales) - The idea being that as orders come in, they are auto printed and waiting to be packed.
However the amazon emails require 2 pages.
under the Rules menu in Outlook, the option is simply "Print" but no further print preferences are available.
Is there a way to get it to print the first page only? a script possibly?
No, Outlook Object Model does not porvide any fine controls over the print functionality. As a workaround, you can export the message as a DOC file (MailItem.saveAs), then programmatically load it in Word and use the Word Obejct Model to print it.