I am using GetBitmapFromCollection for taking the images of page in Bitmap format. Then these pages is used for printing. Quality of bitmap images are not good, thats why, quality of print is also bad.
My query is that, can't we get emf images (vector images) from above method.
I guess I should have asked this at the top, but why aren’t you just use the print support, instead of creating a bitmap and then printing that? Things get imaged at the resolution of the printer if you do that, and should be better quality.
Ya I have tried direct printing option and this is the best out of all. But we wanted these images not only for printing but also for saving as PDF files. But the vector images should be always excellent. Can’t we save as good quality vector image out of these bounds which i posted in earlier reply.
PDF is a scalable format (unless you stick a bitmap in the PDF). We don’t provide a mechanism to go straight to PDF currently. We do support SVG, which is a more modern standard than metafiles. And, there does appear to be SVG to PDF code/products on the web. Plugging one of those into our SVG support may be the quickest way to a PDF file.
Now I am trying with direct printing GoView.Print() and GoView.PrintPreview()
I am using these line of code for fitting the GoView area to fit into printing area:
SizeF docsize = actView.PrintDocumentSize;
if (docsize.Width > 1 || docsize.Height > 1)
{
PrintDocument pd = new PrintDocument();
Rectangle b = pd.DefaultPageSettings.Bounds;
Margins m = pd.DefaultPageSettings.Margins;
float w = b.Width - (m.Left + m.Right);
float h = b.Height - (m.Top + m.Bottom);
float ratio = Math.Min(w / docsize.Width, h / docsize.Height);
if (ratio > 1)
ratio = 1;
actDiagram.PrintScale = ratio;
}
actView.PrintPreview();
I am having so many pages inside GoView and GoView.PrintDocumentSize returning whole area. So If there are 3 pages in project so these 3 pages are coming in only one page of PrintPreview.
I want separate page in PrintPreview for each pages in view.
If I am removing those lines, then in preview, pages are not coming properly.
My one page is having size width = 1472, Height = 942.
I am having 2 pages. Then first page of preview Height wise one full page and some portion of second page is coming. Width wise only half is coming. Remaining part is coming in another pages.
Sorry, I’m not understanding your requirement. Do you have some notion of a “page” that you are trying to get to map 1:1 with physical pages when you print?