Copy an image in a dialog to clipboard

Hi,
 Hi,
 
   I am creating a dialog based application in MFC and trying to copy
an image present in a bitmap dlg item rectangle  to clipboard.
    I am encountering a problem when used the following source code.
When only this application is executed then it copies the correct
image. But when this application runs in background and any other
application(say MS Word) is opened on top of this, a region of MS Word
is copied into clipboard instead of the image from the dialog.
But My aim is to copy the image only from the dialog , even though it
runs in back ground.
This is the segment of code I am using.
 

void CopyGraph()
{
    CBitmap     cBmp;
    CClientDC   cWndDC(this); // View is an hWnd, so we can use "this"
    CDC         cMemDC;   // Handle to a memory DC
    CRect     rect, MapRect;//For storing the size of the window
 
    cMemDC.CreateCompatibleDC(&cWndDC); // Create the memory DC.
    CWnd* pWnd;
    
 
  pWnd = (CWnd*) GetDlgItem(IDC_2D_CIRC_GRAPH_BMP2);
 
 pWnd->GetClientRect(rect);
 pWnd->GetClientRect(&MapRect);
 
 MapWindowPoints( pWnd,&MapRect);
 
 rect.left += -MapRect.left;
 rect.top += -MapRect.top;
 rect.right += rect.left;
 rect.bottom += rect.top;
 
 cBmp.CreateCompatibleBitmap(&cWndDC, rect.Width(), rect.Height() );
    
  // Keep the old bitmap
    CBitmap* pOldBitmap = cMemDC.SelectObject(&cBmp);
 
    cMemDC.BitBlt(0, 0, rect.Width(),rect.Height(), &cWndDC,
rect.left, rect.top,
 SRCCOPY);
 
    // here are the actual clipboard functions.
    AfxGetApp()->m_pMainWnd->OpenClipboard() ;
    EmptyClipboard() ;
    SetClipboardData (CF_BITMAP, cBmp.GetSafeHandle() ) ;
    
    CloseClipboard () ;
    cMemDC.SelectObject(pOldBitmap);
    cBmp.Detach(); 
    return; 
}

Any inputs on this will be of great help. 

Thanks and Regards,
Srinivas
0
8/19/2004 5:12:34 AM
vc.mfc 33608 articles. 0 followers. Follow

3 Replies
568 Views

Similar Articles

[PageSpeed] 16

Try WM_PRINT message to print your window into some HDC.
0
XXX5657 (5)
8/19/2004 11:37:16 AM
This is a multi-part message in MIME format.

------=_NextPart_000_001C_01C4863A.47109230
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Two things I notice with this are:

1)  Since you are getting a ClientDC (which has coords from 0, 0 through =
cx, cy), you don't need to convert them to any other system.  Just use =
the 'rect' structure you have to bltblt.  Ignore what you are doing with =
the MapRect struct.

2) Before you put the HBITMAP handle on the clipboard, you need to =
deselect it out of the DC first.  Go ahead and then detach it (which =
returns a HBITMAP) and use the returned handle in the SetClipboardData =
call.

Here's the modified code:

void CopyGraph()
{
    CBitmap       cBmp;
    CClientDC    cWndDC(this); // View is an hWnd, so we can use "this"
    CDC            cMemDC;   // Handle to a memory DC
    CRect          rect; //For storing the size of the window

    cMemDC.CreateCompatibleDC(&cWndDC); // Create the memory DC.
    CWnd* pWnd =3D (CWnd*) GetDlgItem(IDC_2D_CIRC_GRAPH_BMP2);
    if (pWnd)
    {
        pWnd->GetClientRect(rect);

        cBmp.CreateCompatibleBitmap(&cWndDC, rect.Width(), rect.Height() =
);
        // Keep the old bitmap
        CBitmap* pOldBitmap =3D cMemDC.SelectObject(&cBmp);
        cMemDC.BitBlt(0, 0, rect.Width(),rect.Height(), &cWndDC, 0, 0,  =
SRCCOPY);
        cMemDC.SelectObject(pOldBitmap);

        // detatch the bitmap handle from the object so it won't get =
destroyed
        // after putting it in the clipboard
        HBITMAP hBitmap =3D cBmp.Detach();

        // here are the actual clipboard functions.
        AfxGetApp()->m_pMainWnd->OpenClipboard() ;
        EmptyClipboard() ;
        SetClipboardData (CF_BITMAP, hBitmap ) ;
        CloseClipboard () ;
    }
}

Relvinian

"Srinivas" <srinivas.paluru@wipro.com> wrote in message =
news:872a40d6.0408182112.5ebeafe3@posting.google.com...
> Hi,
>  Hi,
> =20
>    I am creating a dialog based application in MFC and trying to copy
> an image present in a bitmap dlg item rectangle  to clipboard.
>     I am encountering a problem when used the following source code.
> When only this application is executed then it copies the correct
> image. But when this application runs in background and any other
> application(say MS Word) is opened on top of this, a region of MS Word
> is copied into clipboard instead of the image from the dialog.
> But My aim is to copy the image only from the dialog , even though it
> runs in back ground.
> This is the segment of code I am using.
> =20
>=20
> void CopyGraph()
> {
>     CBitmap     cBmp;
>     CClientDC   cWndDC(this); // View is an hWnd, so we can use "this"
>     CDC         cMemDC;   // Handle to a memory DC
>     CRect     rect, MapRect;//For storing the size of the window
> =20
>     cMemDC.CreateCompatibleDC(&cWndDC); // Create the memory DC.
>     CWnd* pWnd;
>    =20
> =20
>   pWnd =3D (CWnd*) GetDlgItem(IDC_2D_CIRC_GRAPH_BMP2);
> =20
>  pWnd->GetClientRect(rect);
>  pWnd->GetClientRect(&MapRect);
> =20
>  MapWindowPoints( pWnd,&MapRect);
> =20
>  rect.left +=3D -MapRect.left;
>  rect.top +=3D -MapRect.top;
>  rect.right +=3D rect.left;
>  rect.bottom +=3D rect.top;
> =20
>  cBmp.CreateCompatibleBitmap(&cWndDC, rect.Width(), rect.Height() );
>    =20
>   // Keep the old bitmap
>     CBitmap* pOldBitmap =3D cMemDC.SelectObject(&cBmp);
> =20
>     cMemDC.BitBlt(0, 0, rect.Width(),rect.Height(), &cWndDC,
> rect.left, rect.top,
>  SRCCOPY);
> =20
>     // here are the actual clipboard functions.
>     AfxGetApp()->m_pMainWnd->OpenClipboard() ;
>     EmptyClipboard() ;
>     SetClipboardData (CF_BITMAP, cBmp.GetSafeHandle() ) ;
>    =20
>     CloseClipboard () ;
>     cMemDC.SelectObject(pOldBitmap);
>     cBmp.Detach();=20
>     return;=20
> }
>=20
> Any inputs on this will be of great help.=20
>=20
> Thanks and Regards,
> Srinivas 
------=_NextPart_000_001C_01C4863A.47109230
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Two things I notice with this =
are:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1)&nbsp; Since you are getting a =
ClientDC (which=20
has coords from 0, 0 through cx, cy), you don't need to convert them to =
any=20
other system.&nbsp; Just use the 'rect' structure you have to =
bltblt.&nbsp;=20
Ignore what you are doing with the MapRect struct.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2) Before you put the HBITMAP handle on =
the=20
clipboard, you need to deselect it out of the DC first.&nbsp; Go ahead =
and then=20
detach it (which returns a HBITMAP) and use the returned handle in the=20
SetClipboardData call.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here's the modified code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>void =
CopyGraph()<BR>{<BR>&nbsp;&nbsp;&nbsp;=20
CBitmap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cBmp;<BR>&nbsp;&nbsp;&nb=
sp;=20
CClientDC&nbsp;&nbsp;&nbsp; cWndDC(this); // View is an hWnd, so we can =
use=20
"this"<BR>&nbsp;&nbsp;&nbsp; CDC&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; cMemDC;&nbsp;&nbsp; // Handle to a memory=20
DC<BR>&nbsp;&nbsp;&nbsp; CRect&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
rect; //For storing the size of the window<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
cMemDC.CreateCompatibleDC(&amp;cWndDC); // Create the memory=20
DC.<BR>&nbsp;&nbsp;&nbsp; CWnd* pWnd =3D (CWnd*)=20
GetDlgItem(IDC_2D_CIRC_GRAPH_BMP2);<BR>&nbsp;&nbsp;&nbsp; if =
(pWnd)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; {</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
pWnd-&gt;GetClientRect(rect);<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
cBmp.CreateCompatibleBitmap(&amp;cWndDC, rect.Width(), rect.Height()=20
);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Keep the old=20
bitmap<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CBitmap* pOldBitmap =3D=20
cMemDC.SelectObject(&amp;cBmp);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =

cMemDC.BitBlt(0, 0, rect.Width(),rect.Height(), &amp;cWndDC, 0, 0,=20
&nbsp;SRCCOPY);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
cMemDC.SelectObject(pOldBitmap);<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
// detatch=20
the bitmap handle from the object so it won't get destroyed</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
// after=20
putting it in the clipboard</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HBITMAP=20
hBitmap =3D cBmp.Detach();</FONT></DIV><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2>
<DIV><BR></FONT><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // here are the =
actual=20
clipboard functions.<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
AfxGetApp()-&gt;m_pMainWnd-&gt;OpenClipboard() ;<BR>&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; EmptyClipboard() ;<BR>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
SetClipboardData (CF_BITMAP,&nbsp;hBitmap ) ;<BR>&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; CloseClipboard () ;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
}<BR>}<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Relvinian</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Srinivas" &lt;</FONT><A=20
href=3D"mailto:srinivas.paluru@wipro.com"><FONT face=3DArial=20
size=3D2>srinivas.paluru@wipro.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A=20
href=3D"news:872a40d6.0408182112.5ebeafe3@posting.google.com"><FONT =
face=3DArial=20
size=3D2>news:872a40d6.0408182112.5ebeafe3@posting.google.com</FONT></A><=
FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
Hi,<BR>&gt;=20
&nbsp;Hi,<BR>&gt; &nbsp;<BR>&gt; &nbsp;&nbsp; I am creating a dialog =
based=20
application in MFC and trying to copy<BR>&gt; an image present in a =
bitmap dlg=20
item rectangle&nbsp; to clipboard.<BR>&gt; &nbsp;&nbsp;&nbsp; I am =
encountering=20
a problem when used the following source code.<BR>&gt; When only this=20
application is executed then it copies the correct<BR>&gt; image. But =
when this=20
application runs in background and any other<BR>&gt; application(say MS =
Word) is=20
opened on top of this, a region of MS Word<BR>&gt; is copied into =
clipboard=20
instead of the image from the dialog.<BR>&gt; But My aim is to copy the =
image=20
only from the dialog , even though it<BR>&gt; runs in back =
ground.<BR>&gt; This=20
is the segment of code I am using.<BR>&gt; &nbsp;<BR>&gt; <BR>&gt; void=20
CopyGraph()<BR>&gt; {<BR>&gt; &nbsp;&nbsp;&nbsp; =
CBitmap&nbsp;&nbsp;&nbsp;&nbsp;=20
cBmp;<BR>&gt; &nbsp;&nbsp;&nbsp; CClientDC&nbsp;&nbsp; cWndDC(this); // =
View is=20
an hWnd, so we can use "this"<BR>&gt; &nbsp;&nbsp;&nbsp;=20
CDC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cMemDC;&nbsp;&nbsp; =
//=20
Handle to a memory DC<BR>&gt; &nbsp;&nbsp;&nbsp; =
CRect&nbsp;&nbsp;&nbsp;&nbsp;=20
rect, MapRect;//For storing the size of the window<BR>&gt; =
&nbsp;<BR>&gt;=20
&nbsp;&nbsp;&nbsp; cMemDC.CreateCompatibleDC(&amp;cWndDC); // Create the =
memory=20
DC.<BR>&gt; &nbsp;&nbsp;&nbsp; CWnd* pWnd;<BR>&gt; &nbsp;&nbsp;&nbsp; =
<BR>&gt;=20
&nbsp;<BR>&gt; &nbsp; pWnd =3D (CWnd*) =
GetDlgItem(IDC_2D_CIRC_GRAPH_BMP2);<BR>&gt;=20
&nbsp;<BR>&gt; &nbsp;pWnd-&gt;GetClientRect(rect);<BR>&gt;=20
&nbsp;pWnd-&gt;GetClientRect(&amp;MapRect);<BR>&gt; &nbsp;<BR>&gt;=20
&nbsp;MapWindowPoints( pWnd,&amp;MapRect);<BR>&gt; &nbsp;<BR>&gt;=20
&nbsp;rect.left +=3D -MapRect.left;<BR>&gt; &nbsp;rect.top +=3D=20
-MapRect.top;<BR>&gt; &nbsp;rect.right +=3D rect.left;<BR>&gt; =
&nbsp;rect.bottom=20
+=3D rect.top;<BR>&gt; &nbsp;<BR>&gt;=20
&nbsp;cBmp.CreateCompatibleBitmap(&amp;cWndDC, rect.Width(), =
rect.Height()=20
);<BR>&gt; &nbsp;&nbsp;&nbsp; <BR>&gt; &nbsp; // Keep the old =
bitmap<BR>&gt;=20
&nbsp;&nbsp;&nbsp; CBitmap* pOldBitmap =3D =
cMemDC.SelectObject(&amp;cBmp);<BR>&gt;=20
&nbsp;<BR>&gt; &nbsp;&nbsp;&nbsp; cMemDC.BitBlt(0, 0,=20
rect.Width(),rect.Height(), &amp;cWndDC,<BR>&gt; rect.left, =
rect.top,<BR>&gt;=20
&nbsp;SRCCOPY);<BR>&gt; &nbsp;<BR>&gt; &nbsp;&nbsp;&nbsp; // here are =
the actual=20
clipboard functions.<BR>&gt; &nbsp;&nbsp;&nbsp;=20
AfxGetApp()-&gt;m_pMainWnd-&gt;OpenClipboard() ;<BR>&gt; =
&nbsp;&nbsp;&nbsp;=20
EmptyClipboard() ;<BR>&gt; &nbsp;&nbsp;&nbsp; SetClipboardData =
(CF_BITMAP,=20
cBmp.GetSafeHandle() ) ;<BR>&gt; &nbsp;&nbsp;&nbsp; <BR>&gt; =
&nbsp;&nbsp;&nbsp;=20
CloseClipboard () ;<BR>&gt; &nbsp;&nbsp;&nbsp;=20
cMemDC.SelectObject(pOldBitmap);<BR>&gt; &nbsp;&nbsp;&nbsp; =
cBmp.Detach();=20
<BR>&gt; &nbsp;&nbsp;&nbsp; return; <BR>&gt; }<BR>&gt; <BR>&gt; Any =
inputs on=20
this will be of great help. <BR>&gt; <BR>&gt; Thanks and =
Regards,<BR>&gt;=20
Srinivas</FONT> </BODY></HTML>

------=_NextPart_000_001C_01C4863A.47109230--

0
m7217 (49)
8/20/2004 4:17:13 AM
Take a look at my sample of capturing a window to a clipboard on my MVP Tips site.
				joe

On 18 Aug 2004 22:12:34 -0700, srinivas.paluru@wipro.com (Srinivas) wrote:

>Hi,
> Hi,
> 
>   I am creating a dialog based application in MFC and trying to copy
>an image present in a bitmap dlg item rectangle  to clipboard.
>    I am encountering a problem when used the following source code.
>When only this application is executed then it copies the correct
>image. But when this application runs in background and any other
>application(say MS Word) is opened on top of this, a region of MS Word
>is copied into clipboard instead of the image from the dialog.
>But My aim is to copy the image only from the dialog , even though it
>runs in back ground.
>This is the segment of code I am using.
> 
>
>void CopyGraph()
>{
>    CBitmap     cBmp;
>    CClientDC   cWndDC(this); // View is an hWnd, so we can use "this"
>    CDC         cMemDC;   // Handle to a memory DC
>    CRect     rect, MapRect;//For storing the size of the window
> 
>    cMemDC.CreateCompatibleDC(&cWndDC); // Create the memory DC.
>    CWnd* pWnd;
>    
> 
>  pWnd = (CWnd*) GetDlgItem(IDC_2D_CIRC_GRAPH_BMP2);
> 
> pWnd->GetClientRect(rect);
> pWnd->GetClientRect(&MapRect);
> 
> MapWindowPoints( pWnd,&MapRect);
> 
> rect.left += -MapRect.left;
> rect.top += -MapRect.top;
> rect.right += rect.left;
> rect.bottom += rect.top;
> 
> cBmp.CreateCompatibleBitmap(&cWndDC, rect.Width(), rect.Height() );
>    
>  // Keep the old bitmap
>    CBitmap* pOldBitmap = cMemDC.SelectObject(&cBmp);
> 
>    cMemDC.BitBlt(0, 0, rect.Width(),rect.Height(), &cWndDC,
>rect.left, rect.top,
> SRCCOPY);
> 
>    // here are the actual clipboard functions.
>    AfxGetApp()->m_pMainWnd->OpenClipboard() ;
>    EmptyClipboard() ;
>    SetClipboardData (CF_BITMAP, cBmp.GetSafeHandle() ) ;
>    
>    CloseClipboard () ;
>    cMemDC.SelectObject(pOldBitmap);
>    cBmp.Detach(); 
>    return; 
>}
>
>Any inputs on this will be of great help. 
>
>Thanks and Regards,
>Srinivas

Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15972)
8/23/2004 6:12:24 AM
Reply:

Similar Artilces:

DVD Copy Pro for Mac
[b]DVD Copy Pro for Mac[/b] is a DVD copy software that can support D9 to D5 compression. With simple operation, it can save DVD in four different ways including directly burning to DVD disc, saving as DVD folder, copying into DVD media format that can be played by DVD Player directly, and converting as ISO file for easy movie management. Now this cool Mac DVD Copy also supports the latest released Snow Leopard. You can download [b][url=http://www.dvd-copy-mac.net/download/dvd-copy-pro-mac.zip]DVD Copy Pro for Mac[/url][/b] freely right now. [b]More information:[/b][quote]http://www.dvd-...

Import/copy calendar in Outlook 2003
I got a new computer and installed Office 2003, and wanted to move my calendar to the new PC. I created a new data file called Personal Folders from Old PC. I wanted to copy my calendar OVER my current one in Personal Folders, but don't see a way to do so. I can copy my old calendar into the Pesonal Folders, but can't delete the new, empty Calendar. So I have Calendar, and Calendar 1 under my Personal Folders. Any way to just import/copy my reminders/appointments into my new calendar? Thanks for any advice. Ck G'Day Cathy, 1. Use the Folder List 2. Click on the OLD Cal...

Macros do not appear in Macro dialog box
I create a macro by choosing Tools > Macro > Macros, entering a name, and clicking Create. In the editor I write the code, then return to Publisher and save the file. But when I choose Tools > Macro > Macros again, the created macro does not appear. Any suggestions on what to do? Thanks gwasson <gwasson@discussions.microsoft.com> was very recently heard to utter: > I create a macro by choosing Tools > Macro > Macros, entering a name, > and clicking Create. In the editor I write the code, then return to > Publisher and save the file. But when I choose Tools...

Scan on Document Imager Office 2007, preview shows, scan doesnt
When I attempt to scan a document in the Document Imager, my scanner shows up, I select it. I click on "preview" and the document can be seen, then, I click on scan....nothing shows up. Help ...

Copy info from one workbook to another?
I have a problem I have a workbook with the function i want like a discribe here. The problem is i want to split the workbook but i don`t know how. Is it possible to have a main workbook with information from other workbooks at each worksheet? I have 20 workbooks with information. I would like to have a main workbook with on sheet1 every row from the 20workbooks with category1, on sheet2 every row from the 20workbooks with category2, etc, etc. The information in the 20workbooks in always only on sheet. The Colum in which the data is has no fix end. I go to fill in the rows trough a...

local copy of mail
How do you store a copy of all your mail on you local computer when using Exchange? You setup an OST/Offline Folders file. Check with your mail admin if they support that configuration. "Brandon Baker" <brandon@discussions.microsoft.com> wrote in message news:epNKuJ19FHA.4004@TK2MSFTNGP14.phx.gbl... > How do you store a copy of all your mail on you local computer when using > Exchange? > ...

Secondary Copy
Hi, My customer using Great Plains modified report(Primary Copy). Now he wants new report something similar to the modified GP report with very few changes. I tried to copy the modified report and planned to use us a secondary copy. But the report has temp tables, so I am unable to make secondary copy. Can some one help me in how to make a new report something similar to the modified report, where to launch it. Whether it is possible throught VBA & Modifier? Regards Selvakumar.S A report with a temporary table can only be a primary copy. This is because only a primary copy can b...

Outlook 2000 SP3
How can I copy my mail and calendar to CD so that I can take my received and sent mail history to a new computer with Outlook installed? Thanks. >-----Original Message----- >How can I copy my mail and calendar to CD so that I can >take my received and sent mail history to a new computer >with Outlook installed? Thanks. >. > All your data saves in C:\Documents and Settings\Username\Local Settings\Application Data\Microsoft\Outlook\archive.pst and C:\Documents and Settings\Evgeni\Local Settings\Application Data\Microsoft\Outlook\outlook.pst You can either install instan...

Copy picture ossice wizard
I have project 2007 standard edition, but the button is not working at all? Any suggestions Hi, The wizard is IMHO useless. Go to Roport, Copy Picture and do without the Wizard what millions have done before the Wizard existed. HTH -- Jan De Messemaeker Microsoft Project Most Valuable Professional +32 495 300 620 For availability check: http://users.online.be/prom-ade/Calendar.pdf "Enrique" <Enrique@discussions.microsoft.com> wrote in message news:72B5AA6C-67AE-468D-B6AE-FF16F52E57BD@microsoft.com... >I have project 2007 standard edition, but the bu...

Copy and paste versus copy and insert copied cells
What is the difference between these commands? Try them, it is pretty easy to see the difference -- Regards, Peo Sjoblom "Alana" <Alana@discussions.microsoft.com> wrote in message news:879FED29-5541-41B0-BB2C-7108D42ED593@microsoft.com... > What is the difference between these commands? ...

Help! How many graphicals resources a dialog can manage?
This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C79943.8039D200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Using VC++ .NET 2003 I have a dialog base application, with 4 tabs. When I display the heavier tab (over 140 objects resources) , not all of them are displayed. When I move the window app on the screen, all objects are then refresh. But iconizing the app, and getting back to the screen, lead to loss some graphicals objects again... Changing the order of resources definitions on the .rc file, and mor...

importing a scanned image
I am creating a mailing list in Excel by typing in the data. To save time, is it possible to scan my hard-copy and import the data into Excel? The hard copies come in various formats. Yes it is possible if you have a good OCR reader that can transfer the scanned image to text Regards, Peo Sjoblom "Julie" wrote: > I am creating a mailing list in Excel by typing in the data. To save time, is > it possible to scan my hard-copy and import the data into Excel? The hard > copies come in various formats. ...

Multiple modal dialog or ::MessageBox, crashes the application
Hi, We have an application, in which we need to show multiple modal dialog boxes at the same time. But, when we close these modal dialog boxes, the application crashes. The messagebox is invoked as shown.. ::MessageBox(hWndParent, m_strMsg, g_strTitle, MB_TASKMODAL | MB_SETFOREGROUND ); Here is the call stack.. 524.84c): C++ EH exception - code e06d7363 (first chance) (524.494): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax=001804ee ebx=00fb4cd0 ecx=0012d5f8 edx=7ffeff0...

subtotal copy and paste
Hi I have used the subtotal option in Excel and this is fine. I have also collasped the list so only the subtotal for each category is visible. However I want to copy and paste this list (just the subtotal) into another sheet When I do this it expands and shows all the results. Is it possible to just copy the visible bit. I have looked in paste special but no luck Cheers Hager On Jan 21, 6:38=A0am, Hager <Ha...@discussions.microsoft.com> wrote: > Hi > > I have used the subtotal option in Excel and this is fine. I have also > collasped the list so only the...

Excel Chart as Image (no file)
VB2005 and Excel2007 I am looking for a method using Office Interop to load an Excel chart as an image into a picturebox. Note that I can already open the Excel file through code, i can create the chart, I can save the chart as an image to a file on the disk, and then load the file into the picturebox. I am hoping there is a way to get a picture in memory from the chart and load it directly into the picturebox without saving to disk. something like: picBudget.Image = xlChart.Picture Has anyone tackled something like this? Thanks AGP ...

Copy above fails one way, copy below fails another way
I have a table of blood pressure readings that looks something like this: A B C D E 11 12 Averages: 134 83 74 13 R# Date Sys Dia Pul 14 4 8/17/08 138 87 72 15 3 8/15/08 130 84 76 16 2 8/12/08 137 83 70 17 1 8/11/08 129 79 76 Cell A14 contains =A15+1 Cell C12 contains =AVERAGE(C14:C17) Cell D12 contains =AVERAGE(D14:D17) Cell E12 contains =AVERAGE(E14:E17) Every time I take a new reading, I want to add a row to the top of the table, between row 13 (the header) and row 14 (the previous top row). I want to push a...

Business Portal "Copy to Excel" not working in Query pages
Hi, I am using Business Portal 4.0. When browsing through one of the queries pages in Business Portal, i clicked "Copy to Excel" icon. I got an error saying "The Office Web Components (OWC) must be installed to copy results to Excel." at the bottom. I am using Office 2007 on my machine. I came to know that Microsoft Office Web Components will no longer be shipping in Microsoft Office. I tried installing Office 2003 Add-in: Office Web Components from http://www.microsoft.com/downloads/details.aspx?familyid=7287252C-402E-4F72-97A5-E0FD290D4B76&displaylang=en a...

Copying graphs
Hi Is it possible to range value a graph ie I would like to copy the graph to another workbook, show all the information but without the links? Thanks You could copy the chart as a picture, then paste it wherever you want. Select the chart, hold Shift while clicking on the Edit menu, Choose Copy Picture, and select the On Screen and As Picture options, then go to the other workbook/sheet and Paste. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "Dixie" <Dixie@discussions.micr...

Copying Views
Is there any way to copy the views under leads so that i can modify them and create different ones. I need to create 15 views and i do not want to do all of them one at a time. Even if there is a way to do it in sql i would love to know -- IT Manager It can be done in SQL, though it's unsupported. What you want need to do is use INSERT ... SELECT to copy rows in the savedquerybase, and give a different savedqueryid For a supported route you can use the CRM web service and create new instances of savedquery. The following article describes how to do this for the userquery, and coul...

Having a go with assembly... how do I copy a double into a register??
I'm trying to speed up a maths routine which consists of much iterative multiplication (and adding and subtraction of ) doubles. Now if I declare my doubles as floats float f double d _asm { mov edx, f //ok mov edx, d //error operand size conflict Can someone show me the error of my ways??? Thanks "Si" <me@you.twang> wrote in message news:sm1gk0l60ng23gilu9b68hkcqi3ub9horn@4ax.com... > > > I'm trying to speed up a maths routine which consists of much > iterative multiplication (and adding and subtraction of ) doubles. > > Now if I de...

EXCEL FILE a copy/a copy/a copy ....filename
when i save my excel file i get a saved copy of the file, not the file itself so my file name of a file i save 7 times can have 7 'a copy' in it eg c./my doc/a copy/a copy/ a copy..............a copy/xx.xls Is the file saved as Read Only? Do you get a message on opening asking you if it's read only? Regards, Alan. "ve" <ve@discussions.microsoft.com> wrote in message news:88C3DEBA-2C2E-4DF0-978B-F823E120458A@microsoft.com... > when i save my excel file i get a saved copy of the file, not the file > itself so my file name of a file i save ...

copy of treeview
Hello, I have to copy information from a treeview to another treeview... The first TreeCtrl is in a dialog and the second it's in another dialog. The application is Dialog Based and I use my oen solution of property sheet. So if I want to call something from another dialog i make i this way: CResultsPageDlg resDlg((CMyAppDlg*)theApp.GetMainWnd()); resDlg.CopyTreeview(m_TreeView.GetRootItem(), m_TreeView.GetRootItem()); useing the solution from http://www.codeguru.com/Cpp/controls/treeview/dragdrop/article.php/c657/ Somebody knows how to do that? Alex What is CopyTreeview method...

everything I copy from explorer end up green in Excel How can I c.
How can I change this to copy the actual colors from the html file ??? "Sacs" wrote: > ...

Image linked to table
I have a dbase that I developed a few years ago using Access 2003. I have a form that brings together a variety of information about a student based on a query using several tables. One of the tables is the tblImages. The link is the student ID. I have a folder in the same directory that contains images of the students. In the database, I have a table called tblImages. The fields in the table are Student ID and a link to the image in the external directory. I right click on the field and select import object then click the link box and locate the image. I used to be able ...

Copy to Clipboard from Excel 2003
Hi, I run Office 2003. In Excel, I consistently have problems with copying information from cells. The following happens: - I select a numeric cell and do a ctrl+c, message from Excel "cannot empty the clipboard". Item does not appear on clipboard " - I select a text cell and do a ctrl+c, message from Excel "an error occured while trying to retrieve information from another program. Try working with your message again". When I OK this message, it appears one more time and when I OK a second time, the item is placed on the clipboard. I do run a very useful app call...